RE: PATH issue
It is platform independent, but not guaranteed to work in the case that your webapp is running directly out of a .war file. In that case, doing sc.getRealPath(/) will return null since the app does not exist on the file system. So, as long as you make sure that your app is deployed from a directory directly off the filesystem, you are good as gold. Just make sure to do a null check on the result of getRealPath(/) just to make sure. Jake At 06:38 PM 7/10/2002 +0100, you wrote: By the way, it's also platform independent ;) Donie -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 18:32 To: 'Tomcat Users List' Subject:RE: PATH issue Hi Kyle Run the following code in your servlet. ServletContext sc = getServletContext(); String RootPath = sc.getRealPath(/); This will return the path where the context is. Ie: $TOMCAT_HOME/webapps/yourapp This will work in all situations no matter where your app is installed Hope this helps Donie -Original Message- From: Pearsall, Kyle [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 18:32 To: Tomcat (E-mail) Subject:PATH issue I have set up Tomcat with an addition to the PATH in startup.bat (set PATH=..\webapps\TestServlet\dll;%PATH%). When Tomcat starts from this batch file, the servlet can access files in this directory. However, when Tomcat runs as a service, the servlet can't access the files in this directory. Tomcat produces javax.servlet.ServletException and java.lang.UnsatisfiedLinkError messages. It seems the NT Tomcat service bypasses startup.bat. How can I set up the NT service to load the PATH statement above? Is this possible? Considering the nature of the product, I can't update the path manually in the Windows environment variables (although this does work). And I would like to keep the files inside the servlet, and not in the Tomcat\bin directory (I tried this and it works as well). What can I do? Thank you in advance for your help. Kyle Pearsall -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Port 8080
http://www.acg-gmbh.de/mod_jk/ Jake At 11:32 AM 7/10/2002 -0700, you wrote: Liam, this is steve Burrus, and I posted yesterday to the newsgroup asking someone (I forgot who it was that I emailed!!!) to please send me the link to access the mod_jk.dll file to connect the Tomcat Server with the Apache Server, but I just now downloaded some 126 messsages from the newsgroup and I really don't wanna have to scan thru ALL of them to look out for the response, so I am appealing to u to send me the link! Thank You. *** --- Liam Morley [EMAIL PROTECTED] wrote: Bryan, The link Eddie included will more than likely help fix your problem. However, I would highly recommend the AJP (mod_jk) connector over the WARP (mod_webapp) connector... it seems more mature, and also supports load balancing (a useful thing if you still want to use Apache, which it seems that you do). Liam Morley Eddie Bush wrote: http://www.codesta.com/knowledge/technical/tomcat_warp_apache/index.jsp Check that out. Bryan Zimmer wrote: Greetings, I am running Tomcat version 4.0.4 with Apache 1.3.26. Before I installed version 4.0.4, I had no trouble accessing my tomcat applications, by saying, for example: mozilla http://my.server.name/examples This would bring up the $CATALINA_HOME/webapps/examples application directory, from which I could choose JSP examples or servlets. I could also do the same with my self-written JSP's, which resided in the directory $CATALINA_HOME/webapps/baz-jsp. In that case I could say: netscape http://my.server.name/baz-jsp and get to the index.html of that directory. Now, and perhaps I've installed correctly because this was supposed to work before, and didn't: mozilla (or netscape or whatever) http://my.server.name:8080/baz-jsp (or http://my.server.name:8080/examples) My question is, how can I get regular port 80 access so the client doesn't need to specify port 8080 and tomcat is integrated seamlessly with Apache? Is it something simple, like jus adjusting the port number in server.xml? I have had some many configuration trials I haven't even tried this. I don't want to mess up Tomcat-Apache. Can anyone tell me how to do this? Any advice much appreciated. I am running with mod_webapp.so, by the way. Thanks, Bryan A. Zimmer [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: going crazy with DBCP
Hi Clay, Notice that your docBase is DBTest and you go on to mention: ...In my web.xml for my application ($CATALINA_HOME/webapps/test/WEB-INF/web.xml) I have added... Did you just create an arbitary directory called DBTest under webapps, but then use a directory called test under webapps to store your application? If that is so, then you need to just rename your test directory to DBTest to match that of your docBase. Jake At 11:44 AM 7/10/2002 -0700, you wrote: Cindy and list, well I am almost there but I am confused about the resource entry... I am using Tomcat 4.1.3, and usinging all the commons stuff that gets bundled with that binary distribution, because I was told on the list that it works. my server.xml file has the following entry... !-- the data source added by Clay-- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluetomcat/value/parameter parameternamepassword/namevaluepassword/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/test/value /parameter /ResourceParams /Context this is confusing because first of all I read on the list that needed to create a directory under my webapps called /DBTest (for my example) I don't really see how you are doing you're path to jdbc/Support, did you create a directory? This is what was causing my initial failure (a detail not in the DBCP guide), secondly I was watching the DBTest logs at startup and it complained that there was no web.xml or WEB-INF dir for the context, do you have a web.xml file that you put in this directory? In my web.xml for my application ($CATALINA_HOME/webapps/test/WEB-INF/we b.xml) I have added: resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref so instead of doing exactly what you are doing to test the datasource in a servlet, I am calling it with and action and then putting the output to a page bean, (the STRUTS way) but its identical to calling a printstream for a servlet, this is the code Context initCtx, envCtx; DataSource ds; try { message = message+AppController: setting initial context\n; initCtx = (Context) new InitialContext(); message = message+AppController: getting the context environment\n; envCtx = (Context) initCtx.lookup(java:comp/env); message = message+AppController: setting up the DataSource\n; ds = (DataSource) envCtx.lookup(jdbc/TestDB); if (ds != null ) { message = message+AppController: DataSource is ready\n; //ds.setLogWriter(new PrintWriter(System.out)); Connection conn = ds.getConnection(); if(conn != null) { message = Got Connection +conn.toString()+\n; Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery(select fname, lname, email from users); if(rst.next()) { fname=rst.getString(1); lname=rst.getString(2); email=rst.getString(3); message=message+fname+ +lname+ +email+\n; } conn.close(); } } else { message = message+AppController: DataSource is null\n; } } catch (Exception e) { message = message+Exception - context: + e + \n + e.getMessage()+\n; } here is what i get back message: AppController: setting initial context AppController: getting the context environment AppController: setting up the DataSource AppController: DataSource is ready Exception - context: java.sql.SQLException: Cannot load JDBC driver class 'null' Cannot load JDBC driver class 'null' and when I look at the log for catalina.out... java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown Source) at org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown Source) at com.noi.webapp.test.action.RegisterAction.perform(Unknown Source) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServle at
Re: log4j-1.2.5.jar
Hi Lenny, Well, unless you use the RepositorySelector technique (which I've only heard about and don't know how to implement) you will need to put log4j-1.2.5.jar in your WEB-INF/lib directory. You can put your log4j.properties in WEB-INF/classes and it should get used the first time a new logger is created. Alternatively, you can set up a servlet to load on startup of your app and do initialization manually which can be more flexible. You can see an example of that by looking at Barracuda, a Servlet Presentation Framework which includes a library called plankton.jar. It contains some generally useful utilities that can be used anywhere...even outside the context of Barracuda. One thing it has in particular is a Log4jInit servlet that is very comprehensive (I know because I wrote it). You can use that and then check out Barracuda's web.xml for an example of the configuration to initialize the servlet on startup. plugBTW, you might want to try out Barracuda. I am a committer to that project and can tell you that it is a very compelling framework and an alternative to JSP framworks like Struts and suchplug. You can download Barracuda at: http://barracuda.enhydra.org/software/downloads/barracuda-1.1.0.zip Read about Barracuda here: http://barracuda.enhydra.org/cvs_source/Barracuda/index_details.html Jake At 09:45 PM 7/10/2002 -0500, you wrote: Quick Question: Where exactly should the log4j-1.2.5.jar be located in order to get it to work within Tomcat 4.1.3? I can get log4j to work with log4j.properties while I run it as a separate servlet by starting it from a command line with java after I compile it the servlet alone. I still can't get it to work with Tomcat 4.1.3 My JSP's currently run find and retrieve data. I really need to place some log4j statement to debug in some servlets. Any help would certainly be appreciated. Oh Yeah, The folks from the Loggers4J Users group suggested that I asked this group for help regarding using log4j with Tomcat. Platform again: Windows 2000 Professional Tomcat 4.1.3 J2SDK 1.4.0 Log4j-1.2.5 Turbine 2.1 velocity-1.2-dev MySQL 4.0.1-alpha-max-nt Thanks, Lenny Sorey -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: PATH issue
Sorry, I guess I just read the reply to the original message dealing with getRealPath(/) and not the original message. I know next to nothing about dealing with JNI. You may very well be right that there is no platform independent manner to deal with the JNI Paths. Jake At 10:07 PM 7/10/2002 -0600, you wrote: There is no platform independent manner to specify JNI code library locations. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 10 July, 2002 9:54 PM To: Tomcat Users List Subject: RE: PATH issue It is platform independent, but not guaranteed to work in the case that your webapp is running directly out of a .war file. In that case, doing sc.getRealPath(/) will return null since the app does not exist on the file system. So, as long as you make sure that your app is deployed from a directory directly off the filesystem, you are good as gold. Just make sure to do a null check on the result of getRealPath(/) just to make sure. Jake At 06:38 PM 7/10/2002 +0100, you wrote: By the way, it's also platform independent ;) Donie -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 18:32 To: 'Tomcat Users List' Subject:RE: PATH issue Hi Kyle Run the following code in your servlet. ServletContext sc = getServletContext(); String RootPath = sc.getRealPath(/); This will return the path where the context is. Ie: $TOMCAT_HOME/webapps/yourapp This will work in all situations no matter where your app is installed Hope this helps Donie -Original Message- From: Pearsall, Kyle [mailto:[EMAIL PROTECTED]] Sent: 10 July 2002 18:32 To: Tomcat (E-mail) Subject:PATH issue I have set up Tomcat with an addition to the PATH in startup.bat (set PATH=..\webapps\TestServlet\dll;%PATH%). When Tomcat starts from this batch file, the servlet can access files in this directory. However, when Tomcat runs as a service, the servlet can't access the files in this directory. Tomcat produces javax.servlet.ServletException and java.lang.UnsatisfiedLinkError messages. It seems the NT Tomcat service bypasses startup.bat. How can I set up the NT service to load the PATH statement above? Is this possible? Considering the nature of the product, I can't update the path manually in the Windows environment variables (although this does work). And I would like to keep the files inside the servlet, and not in the Tomcat\bin directory (I tried this and it works as well). What can I do? Thank you in advance for your help. Kyle Pearsall -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: going crazy with DBCP
Hello Clay, I just tested 4.1.7 and the commons-dbcp.jar that comes with it is still broken. I reported this issue after testing 4.1.6. To reiterate, I have DBCP connection pooling working just fine in Tomcat-4.1.3 and it doesn't work in 4.1.6 or 4.1.7. What I have done to work around this is to copy the commons-dbcp.jar from Tomcat-4.1.3 to Tomcat-4.1.7. After doing this, everything works just fine. I guess I'd better report the bug in bugzilla. Jake Tuesday, July 09, 2002, 2:13:23 PM, you wrote: CG I went to 4.1.7 yesterday, I tjhought hey this will all work because the CG .tar.gz has the commons jars already wrapped up in it, yay this will all CG work great just by getting the new stuff. so I downloaded it got it up and CG running, and then added the new DBTest context as specified to the CG server.xml CG watched the log hopefully, then.. CG exact same error in the log file, is the some little step that I may have CG missed? CG clay CG -Original Message- CG From: Jacob Kjome [SMTP:[EMAIL PROTECTED]] CG Sent: Monday, July 08, 2002 7:04 PM CG To: Tomcat Users List CG Subject:Re: going crazy with DBCP CG Try using Tomcat 4.1.3 or 4.1.7 (not anything in between because I think CG DBCP was broken for a bit there). Everything should work just great. CG Jake CG At 04:36 PM 7/8/2002 -0700, you wrote: I will pay someone to help me at this point, I am not rich but I know when to admit when need help. I am basically at the end of my rope trying to CG get dbcp to work, I have been over http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 about one hundred times, basically it's impossible to get the exact configuration that he speaks of, like some of the commons stuff I couldn't find those versions, anyway it would really suprise me if those EXACT versions are the only ones that work. I tried to install the RPM 4.0.4 version of tomcat and the webapps, but I could not get the manager to work, so I went back to 4.0.2. Is there such CG a difference between 4.0.2 and to point versions that it causes this stuff CG to fail? Is the only way to get DBCP to work is to actually build tomcat from source? Anyway I have done the best I can and spent two days configuring, this where I am at: tomcat 4.0.2 full mysql 4.0.1-2 mm.mysql-2.0.14-bin.jar in $TOMCAT_HOME/common/lib commons-collections-2.0 - commons-collections.jar in $TOMCAT_HOME/common/lib commons-dbcp-20020707.tar.gz - commons-dbcp.jar in $TOMCAT_HOME/common/lib commons-pool-20020707.tar.gz - commons-pool.jar in $TOMCAT_HOME/common/lib added to server.xml !-- the data source added by Clay-- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluetomcat/value/parameter parameternamepassword/namevaluepassword/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/test/value /parameter /ResourceParams /Context when tomcat is started i get the following log errors: 2002-07-08 16:14:38 StandardContext[/DBTest]: Starting 2002-07-08 16:14:38 StandardContext[/DBTest]: Processing start(), current available=false 2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring default CG Resources 2002-07-08 16:14:38 StandardContext[/DBTest]: Error initializing CG resources: Document base /home/tomcat/jwsdp-1_/webapps/DBTest does not exist or is CG not a readable directory 2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring non-privileged default Loader 2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring default Manager 2002-07-08 16:14:38 StandardContext[/DBTest]: Processing standard CG container startup 2002-07-08 16:14:38 StandardContext[/DBTest]: Context startup failed due CG to previous errors 2002-07-08 16:14:38 StandardContext[/DBTest]: Exception during cleanup after start failed LifecycleException: Container StandardContext[/DBTest] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3521) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3499) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:739
Re[3]: Tomcat-4.1.6 and DBCP issue? UPDATE... still not working in 4.1.7
Remy, I reported bug 10614 for this issue against the commons project. However, I thought that you might want to look at it as well since it might also be a Tomcat/commons integration issue. I posted a stack trace in that bug. Can you take a look and let me know what you think the problem might be? I would hope that this would be fixed for the next release of Tomcat-4.1.x. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10614 later, Jake Tuesday, July 02, 2002, 11:40:11 AM, you wrote: JK Hello Remy, JK Cool, that did it! Just by replacing the 4.1.6 version of JK commons-dbcp.jar with the 4.1.3 version made everything work again. JK I guess this definitely means a regression was introduced into JK commons-dbcp in 4.1.6. JK Jake JK Tuesday, July 02, 2002, 2:09:40 AM, you wrote: RM Jacob Kjome wrote: Hi, I'm just checking to confirm whether others that used DBCP connection pooling successfully in Tomcat-4.1.3 are running into problems when using Tomcat-4.1.6? That is the case for me. I'll check again tomorrow to see if I did anything stupid, but the only difference seems to be the tomcat version, so it would follow that something broke in DBCP between 4.1.3 and 4.1.6. RM It is easy to replace the DBCP included with another version or a new RM nightly if there is a problem (just replace commons-dbcp.jar in common/lib). RM In the case of 4.1.6, some last minute changes were integrated in DBCP, RM so maybe there was some regression. RM Remy RM -- RM To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] RM For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection Pooling?
Try this with Either Tomcat-4.1.3 which I've tested with the instructions at the link below and know it to work. Also, you might try Tomcat-4.1.7 whch just came out. I had tried Tomcat-4.1.6 and it failed so, presumably, the nightly builds around the time of 4.1.6 development were broken as far as DBCP goes which is, likely, the reason why you are getting the bad behavior. Jake At 01:40 PM 7/4/2002 -0400, you wrote: Thanks for the help! I followed the steps in the howto page http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 I compiled my java test file and there is no error message. But when I run it, I run it, I got the error message as below.Could anyone please give me some hints? Thanks a lot! javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:647) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.ibiblio.pool.DataSourceBean.main(DataSourceBean.java:24) More detail below: 1. My system already has these installed: jakarta-tomcat-4.0.1 J2SE 1.3 mysql-3.23.33 mm.mysql-2.0.7 2. I download Jakarta-Commons projects DBCP Nightly Build 20020620. (The Nightly Build 20020523 couldn't be found). collections 2.0 pool1.0 I put the mm.mysql, DBCP, collection and pool jar files into CATALINA_HOME/common/lib 3. I already have a DB called osprey in mySQL. 4. Then I configured the context in the server.xml: Context path=/osrt/osprey/webapps docBase=/public/html/osrt/osprey/webapps debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/ospreyDb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/ospreyDb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameuser/namevalue/value/parameter parameternamepassword/namevalue***/value/parameter parameternamedriverClassName/name valueorg.gjt.mm.mysql.Driver/value/parameter parameternamedriverName/name valuejdbc:mysql://trance.metalab.unc.edu:3306/osprey/value/parameter /ResourceParams /Context 5. I changed my WEB-INF/ web.xml by adding the resource-ref stuff. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app taglib taglib-uri /orataglib /taglib-uri taglib-location /WEB-INF/tlds/orataglib_1_0_3.tld /taglib-location /taglib resource-ref res-ref-namejdbc/ospreyDb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth res-sharing-scopeShareable/res-sharing-scope /resource-ref /web-app 6. I have a java file in WEB-INF/classes/org/ibiblio/pool call DataSourceBean.java //Testing package org.ibiblio.pool; import java.lang.*; import java.io.*; import java.sql.*; import javax.sql.*; import java.util.*; import javax.naming.*; import javax.naming.spi.*; public class DataSourceBean{ public static void main (String arg[]) { try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds =(DataSource)ctx.lookup(java:comp/env/jdbc/ospreyDb); } catch(Exception e) { e.printStackTrace(); } }//end of main } // end of class The error is from the line DataSource ds =(DataSource)ctx.lookup(java:comp/env/jdbc/ospreyDb); On Thu, 4 Jul 2002, Les Hughes wrote: I think I should set up a cron job to email this link out every day http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 -Original Message- From: Meichun Li [mailto:[EMAIL PROTECTED]] Sent: 04 July 2002 13:09 To: Tomcat Users List Subject: Connection Pooling? Hi, I want to implement my application with Connection Pooling. Tomcat offers supports of a connection pool for JDBC connection, but there should be a prerequisite--JDBC driver should provide pooled datasource implementation. Is this right? The JDBC driver
Re: going crazy with DBCP
Try using Tomcat 4.1.3 or 4.1.7 (not anything in between because I think DBCP was broken for a bit there). Everything should work just great. Jake At 04:36 PM 7/8/2002 -0700, you wrote: I will pay someone to help me at this point, I am not rich but I know when to admit when need help. I am basically at the end of my rope trying to get dbcp to work, I have been over http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 about one hundred times, basically it's impossible to get the exact configuration that he speaks of, like some of the commons stuff I couldn't find those versions, anyway it would really suprise me if those EXACT versions are the only ones that work. I tried to install the RPM 4.0.4 version of tomcat and the webapps, but I could not get the manager to work, so I went back to 4.0.2. Is there such a difference between 4.0.2 and to point versions that it causes this stuff to fail? Is the only way to get DBCP to work is to actually build tomcat from source? Anyway I have done the best I can and spent two days configuring, this where I am at: tomcat 4.0.2 full mysql 4.0.1-2 mm.mysql-2.0.14-bin.jar in $TOMCAT_HOME/common/lib commons-collections-2.0 - commons-collections.jar in $TOMCAT_HOME/common/lib commons-dbcp-20020707.tar.gz - commons-dbcp.jar in $TOMCAT_HOME/common/lib commons-pool-20020707.tar.gz - commons-pool.jar in $TOMCAT_HOME/common/lib added to server.xml !-- the data source added by Clay-- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluetomcat/value/parameter parameternamepassword/namevaluepassword/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/test/value /parameter /ResourceParams /Context when tomcat is started i get the following log errors: 2002-07-08 16:14:38 StandardContext[/DBTest]: Starting 2002-07-08 16:14:38 StandardContext[/DBTest]: Processing start(), current available=false 2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring default Resources 2002-07-08 16:14:38 StandardContext[/DBTest]: Error initializing resources: Document base /home/tomcat/jwsdp-1_/webapps/DBTest does not exist or is not a readable directory 2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring non-privileged default Loader 2002-07-08 16:14:38 StandardContext[/DBTest]: Configuring default Manager 2002-07-08 16:14:38 StandardContext[/DBTest]: Processing standard container startup 2002-07-08 16:14:38 StandardContext[/DBTest]: Context startup failed due to previous errors 2002-07-08 16:14:38 StandardContext[/DBTest]: Exception during cleanup after start failed LifecycleException: Container StandardContext[/DBTest] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3521) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3499) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardHost.start(StandardHost.java:739) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1190) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardServic e.java:499) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2187) at org.apache.catalina.startup.Catalina.start(Catalina.java:504) at org.apache.catalina.startup.Catalina.execute(Catalina.java:399) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) I am not an expert, but I feel like I have to be to get DBCP to work clay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
RE: going crazy with DBCP
At 11:05 PM 7/8/2002 -0400, you wrote: Hey Clay, here's something I noticed. With Tomcat 4.0.x the place to put your jars for server wide access is in %CATALINA%\lib, not %CATALINA%\common\lib. (the common\lib is the new location for 4.1.x) This is not at all correct. %CATALINA%\common\lib existed in Tomcat-4.0 and continues to exist in Tomcat-4.1. It is used for cases where both the server and your webapps require access to libraries. This would be the case with your JDBC driver when using DBCP connection pooling. What changed between 4.0 and 4.1 is that %CATALINA%\lib is now %CATALINA%\shared\lib. Actually, the only thing that changed was the name. There is no functional difference here. These respective directories are be used to store jars that need to be accessed by your webapps, but you don't need to have the server itself see them. We don't need any more confusion about that on this list. Jake
Re[2]: Tomcat-4.1.6 and DBCP issue?
Hello Remy, Cool, that did it! Just by replacing the 4.1.6 version of commons-dbcp.jar with the 4.1.3 version made everything work again. I guess this definitely means a regression was introduced into commons-dbcp in 4.1.6. Jake Tuesday, July 02, 2002, 2:09:40 AM, you wrote: RM Jacob Kjome wrote: Hi, I'm just checking to confirm whether others that used DBCP connection pooling successfully in Tomcat-4.1.3 are running into problems when using Tomcat-4.1.6? That is the case for me. I'll check again tomorrow to see if I did anything stupid, but the only difference seems to be the tomcat version, so it would follow that something broke in DBCP between 4.1.3 and 4.1.6. RM It is easy to replace the DBCP included with another version or a new RM nightly if there is a problem (just replace commons-dbcp.jar in common/lib). RM In the case of 4.1.6, some last minute changes were integrated in DBCP, RM so maybe there was some regression. RM Remy RM -- RM To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] RM For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection Pooling
Hello Kevin, See this: http://marc.theaimsgroup.com/?l=tomcat-userm=102348915728231w=2 and this: http://marc.theaimsgroup.com/?l=tomcat-userm=102383138524775w=2 also this: http://marc.theaimsgroup.com/?l=tomcat-userm=101631189730747w=2 They might be what you are looking for. Jake Tuesday, July 02, 2002, 10:48:00 AM, you wrote: KP Hi, KP I am new to Tomcat so bear with me. KP I have developed something using Websphere application server which has KP connection pooling built-in. KP Is there anything simple to plug in so that I can do the same with Tomcat? KP Any docs or Howto's would be appreciated KP Thanks KP Kevin -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: commons-dbcp support in Tomcat 4.1?
Hello rory, Yes, Follow the instructions in the following archived message and you will be up and running: http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 I also wrote a snippet of code here: http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2 Jake Monday, July 01, 2002, 9:54:01 AM, you wrote: rdnsc Hi there rdnsc Tomcat-docs indicates that DB Connection Pooling is based on the DBCP connection pool. Does that imply that there is a default JNDI Object Factory configured for javax.sql.Datasource using rdnsc Commons DBCP? rdnsc I guess what I'm really asking is: to use Connection Pooling, is all I need the commons-dbcp commons-pool jar files in tc4.1\common\lib; a Resource element in server.xml; and a rdnsc resource-ref element in web.xml. Oh, and my JDBC driver jar files in common\lib too ?? rdnsc -- rdnsc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] rdnsc For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: apache2.0.39 + tomcat4.1.x + mod_jk2.so
Hello Luminous, Works fine for me using Tomcat-4.1.6, Apache-2.0.39, and j2sdk1.4.0_01 on Win2k. Jake Monday, July 01, 2002, 2:28:22 PM, you wrote: LH I am using new directory for each version of tomcat. LH But the problem, that I noticed is that tomcat4.1.x LH does not like JDK1.4. Is it only me? LH --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Mon, 1 Jul 2002, Brian Millett wrote: Date: Mon, 01 Jul 2002 07:13:09 -0500 From: Brian Millett [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so On Sun, 2002-06-30 at 20:41, Luminous Heart wrote: It seems that tomcat4.1.6 and tomcat4.1.3 (for this matter) do not like jdk1.4! I get errors about not being able to compile jsp files. If I switch Java_Home to jdk1.2 it compiles fine. But of course 1.2 does not support some of the new features in tomcat like keepSocketAlive. I only get jsp errors when I forget to delete the work dir after upgrading a version of jasper. Try deleting 'work/*', then try again. Or install the new Tomcat in a new directory. Installing new versions on top of old ones is just asking for trouble. Craig -- Brian Millett Enterprise Consulting Group Shifts in paradigms (314) 205-9030 often cause nose bleeds. [EMAIL PROTECTED] Greg Glenn -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] LH __ LH Do You Yahoo!? LH Yahoo! - Official partner of 2002 FIFA World Cup LH http://fifaworldcup.yahoo.com LH -- LH To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] LH For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat-4.1.6 and DBCP issue?
Hi, I'm just checking to confirm whether others that used DBCP connection pooling successfully in Tomcat-4.1.3 are running into problems when using Tomcat-4.1.6? That is the case for me. I'll check again tomorrow to see if I did anything stupid, but the only difference seems to be the tomcat version, so it would follow that something broke in DBCP between 4.1.3 and 4.1.6. Jake -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [Offtopic] Setting the directory where IO occurs in a servlet?
first of all, if WEB-INF/files is where you *always* want to write stuff, why not do something more portable like this: servlet servlet-nameparts/servlet-name servlet-classPartsDepotServlet/servlet-class init-param param-namephysicalFilePath/param-name param-valueWEB-INF/files/param-value /init-param /servlet Then, in the init() of your servlet, do: String contextPath = getServletContext().getRealPath(/); String filePath = getInitParameterphysicalFilePath); String systemFilePath = filePath.replace('/', File.separatorChar); File log4jFile = new File(contextPath+systemFilePath); Now you never have to touch your web.xml again no matter what system you run on and no matter where your app actually exists on that system. Second of all, be very careful when you do this. You cannot assume that you will be able to write to the WEB-INF directory of your webapp. If you run directly from a .war file, File IO will be impossible to that area because it will exist in an archive, not on the file system. So, just make sure you are running your app out of a directory. As for file IO, you could set a system property with the path generated by the code above and use that system property when doing File IO. I'm not sure how it would be done automatically, but I think it is possible since a lot of IDE's do a similar thing. Jake At 09:02 AM 6/30/2002 -0400, you wrote: Hi Folks, I have a servlet, running in Tomcat 4.0.3, which reads in files and writes files. Currently it does the reading and writing to the folder where Tomcat was started. I would like to have control over where the servlet reads and writes. My plan for controlling where IO occurs is to incorporate into my webapps web.xml file the location of where I want IO to occur: servlet servlet-nameparts/servlet-name servlet-classPartsDepotServlet/servlet-class init-param param-namephysicalFilePath/param-name param-valuec:\tomcat\webapps\parts-depot\WEB-INF\files/param-value /init-param /servlet Then, in my servlet I will read in the path: physicalFilePath = getInitParameter(physicalFilePath); At the point I would like to somehow express from now on all IO done by the servlet should go to the folder indicated by physicalFilePath. Is there some way to do that, either in the Java API or in the Servlet API? Is this strategy that I am taking the best approach? /Roger P.S. I realize that this is not really the appropriate list for this question. What list do you recommend? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: apache2.0.39 + tomcat4.1.x + mod_jk2.so
That error happens when you define the following for JMX beans support: in server.xml. Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ and you don't define the Coyote ajp1.3 connector If you use the older ajp1.3 connector, comment the above listeners out. Jake At 04:43 PM 6/30/2002 -0700, you wrote: I am doing similar to what you have here. When I start my tomcat I get this error in my catalina.out Quote INFO: Initializing Coyote HTTP/1.1 on port 8003 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:224) - --- at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Starting service Tomcat-Standalone Apache Tomcat/4.1.3 /Quote Then I start my apache with apachectl startssl. When I go to my http://www.myserver.com:8003/examples/jsp/dates/date.jsp I get this error: Quote type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:947) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:656) /Quote What am I doing wrong? --- Brian Millett [EMAIL PROTECTED] wrote: On Sun, 2002-06-30 at 17:11, Luminous Heart wrote: Do I understand that mod_jk version 1 works with tomcat4.1 and apache2.0.x? Here is my stuff for tomcat 4.1.6, apache 2.0.39, redhat 7.2 server.xml: (comment out the jk2 stuff) !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=3/ Then in the apache httpd.conf I include this mod_jk.conf file: IfModule mod_jk.c ### # Apache Coyote JK Configuration File ### JkWorkersFile /opt/apache/conf/workers.properties JkLogFile /opt/apache/logs/mod_jk.log JkLogLevel debug Alias /examples /opt/jakarta-tomcat/webapps/examples Directory /opt/jakarta-tomcat/webapps/examples Options Indexes MultiViews All AllowOverride FileInfo AuthConfig Limit Limit GET POST Order deny,allow Deny from all Allow from 192.168.250. /Limit /Directory JkMount /examples ajp13 JkMount /examples/* ajp13 Alias /struts-example /opt/jakarta-tomcat/webapps/struts-example Directory /opt/jakarta-tomcat/webapps/struts-example Options Indexes MultiViews All AllowOverride FileInfo AuthConfig Limit Limit GET POST Order deny,allow Deny from all Allow from 192.168.250. /Limit /Directory JkMount /struts-example ajp13 JkMount /struts-example/* ajp13 Alias /struts-documentation /opt/jakarta-tomcat/webapps/struts-documentation Directory /opt/jakarta-tomcat/webapps/struts-documentation Options Indexes MultiViews All AllowOverride FileInfo AuthConfig Limit Limit GET POST Order deny,allow Deny from all Allow from 192.168.250. /Limit /Directory JkMount /struts-documentation ajp13 JkMount /struts-documentation/* ajp13 Alias /struts-exercise-taglib /opt/jakarta-tomcat/webapps/struts-exercise-taglib Directory /opt/jakarta-tomcat/webapps/struts-exercise-taglib Options Indexes MultiViews All AllowOverride FileInfo AuthConfig Limit Limit GET POST Order deny,allow Deny from all Allow from 192.168.250. /Limit /Directory JkMount /struts-exercise-taglib ajp13 JkMount /struts-exercise-taglib/* ajp13 Alias /cocoon /opt/jakarta-tomcat/webapps/cocoon Directory /opt/jakarta-tomcat/webapps/cocoon Options Indexes MultiViews All
Re: Need help with Tomcat on Apache on Windows 2000
You can grab the binary for mod_jk for Apache 2.0.39 from here: http://www.acg-gmbh.de/mod_jk/ just grab mod_jk.dll, put it in your Apache2/modules directory, configure everything else like it says on the flashguides page, and you should be up and running. Jake At 01:24 PM 6/29/2002 +, you wrote: I am using Windows 2000 server NTFS file system If someone could help me configure my Apache 2.0.39 I am using Java 2 SDK Standard editiom 1.3.1_03 I believe I am using the Binary version for everything. I got most of the good info regarding mod_jk , I had no Idea where to find this file. sohttp://www.galatea.com/flashguides/apache-tomcat-24-win32.xml helped me.. Basically, I cant get apache to work with tomcat. I downloaded Download the tomcat connectors SOURCE from is this OK? http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jakarta-tomcat-connectors-4.0.2-01-src.zip. then 2. Unpack the distribution in the desired directory 3. Make sure you have ant installed and %ANT_HOME% set. If not, follow these steps: a. Download ant from http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/jakarta-ant-1.4.1-bin.zip b. Unpack the distribution in the desired directory c. Set %ANT_HOME% in your environment to point to the ant installation After that. I just couldnt get it to go.. pls HELP!! j03b0x3r _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Need help with Tomcat on Apache on Windows 2000
No need to use the debug version unless you plan on actually debugging it in Visual Studio or something. Here's my include statement: Include C:/Program Files/Apache Group/Jakarta/tomcat-4.1.3/conf/jk/mod_jk.conf You can autogenerate the mod_jk.conf file by doing the following in your server.xml: Put the following right after the Server... element and change the paths for your system: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=c:/Progra~1/Apache~1/Apache2/modules/mod_jk.dll jkDebug=info workersConfig=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/conf/jk/workers.properties jkLog=c:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/logs/mod_jk.log / Put the following right after any and all Host... elements you have: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false / This will output a mod_jk.conf in the CATALINA_HOME/conf/auto directory. After this is done, I suggest commenting out the stuff you added to server.xml and copying the conf/auto/mod_jk.conf to conf/jk/mod_jk.conf. This makes it so if you want to tweak your mod_jk.conf, you can do that without worrying about it being overwritten. Now you just have to worry about the workers.properties. I'm attaching mine for your convenience. I'll also attach a copy of the auto-generated mod_jk.conf. If you have everything under the localhost Host and notice that you can't hit hit your app at any address but http://localhost/mywebapp, remove the following from mod_jk.conf: VirtualHost localhost ServerName localhost Or, just make sure to set your app up under the proper host in server.xml. Either way will work. Also, in addition to the somewhat messy setup of the mod_jk.conf that you see autogenerated for most of your contexts, you can also configure it simply like this: JkMount /myapp ajp13 JkMount /myapp/* ajp13 That negates the need for all that extra Alias, Directory, and Location stuff since all it does is tell Apache to forward everthing to Tomcat. The disadvantage of this clean setup is that Apache will no longer serve up static files which would take some of the burden off Tomcat. Anyway, that's it. Attached are my example files. Jake At 03:49 PM 6/29/2002 +, you wrote: I grabed the debug version of it the 173 KB Everything else is ok if you go to http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml near the bottom of the page. it says to Load Module in httpd.conf everytime I right anything in that file. Apache dosent start after that it tells me to 1. Option 1: edit httpd.conf to inclucde mod_jk.conf a. Add the following lines to the end of the LoadModule section: Include c:/apps/jakarta-tomcat-4.0.3/conf/auto/mod_jk.conf how do I enter this? Maybe Im putting it in wrong.. where do I put this?. and do I just copy and paste it? Include c:/apps/jakarta-tomcat-4.0.3/conf/auto/mod_jk.conf can you have a look pls From: Jacob Kjome [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Need help with Tomcat on Apache on Windows 2000 Date: Sat, 29 Jun 2002 10:44:57 -0500 You can grab the binary for mod_jk for Apache 2.0.39 from here: http://www.acg-gmbh.de/mod_jk/ just grab mod_jk.dll, put it in your Apache2/modules directory, configure everything else like it says on the flashguides page, and you should be up and running. Jake At 01:24 PM 6/29/2002 +, you wrote: I am using Windows 2000 server NTFS file system If someone could help me configure my Apache 2.0.39 I am using Java 2 SDK Standard editiom 1.3.1_03 I believe I am using the Binary version for everything. I got most of the good info regarding mod_jk , I had no Idea where to find this file. so http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml helped me.. Basically, I cant get apache to work with tomcat. I downloaded Download the tomcat connectors SOURCE from is this OK? http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jakarta-tomcat-connectors-4.0.2-01-src.zip. then 2. Unpack the distribution in the desired directory 3. Make sure you have ant installed and %ANT_HOME% set. If not, follow these steps: a. Download ant from http://jakarta.apache.org/builds/jakarta-ant/release/v1.4.1/bin/jakarta-ant-1.4.1-bin.zip b. Unpack the distribution in the desired directory c. Set %ANT_HOME% in your environment to point to the ant installation After that. I just couldnt get it to go.. pls HELP!! j03b0x3r _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] j03b0x3r _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mod_jk
Re: Tomcat Classpath
Hi Jack, Tomcat ignores your classpath. Believe me, this solves a *ton* of problems. If you want to use the classpath, go back to using Tomcat 2.x.x. I wouldn't give it the time of day now that 3.3.x and 4.x.x are out. Seriously, do yourself a favor and just copy the jar into $CATALINA_HOME/common/lib and save yourself a lot of headache. BTW, you don't want to copy stuff into $CATALINA_HOME/lib that you need both your app and the server itself to see. Jars in that directory will only be visible to your webapp. common/lib makes jars available to both your webapp *and* the server. Jake At 09:52 PM 6/28/2002 -0700, you wrote: I am trying to configure a Tomcat JNDI database resource. This resource requires a JAR. The JAR is located in an appropriate place on my drive. I would rather not move or copy it to $CATALINA_HOME/lib. How can I configure Tomcat's classpath to include this JAR? Thanks, Jack D. Bates -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: TC 4.1.3: JK2 connector dies? cant get isapi_redirector to t alkto tomcat
Hello Ignacio, I don't think yours statement that jk2.properties is on port 8019 by default. If you comment all the stuff out in jk2.properties, Tomcat just generates a jk2.properties.save which has the following for me: #AUTOMATICALLY GENERATED #Tue Jun 25 11:09:03 CDT 2002 maxThreads=75 port=8009 soTimeout=2 jkHome=C\:\\Progra~1\\Apache~1\\Jakarta\\tomcat-4.1.3 tcpNoDelay=true timeout=2 secure=false backlog=10 I think it generated all that based on what was defined in the Coyote jk2 connector. Jake Thursday, June 27, 2002, 12:19:38 PM, you wrote: De: Mark Prins [mailto:[EMAIL PROTECTED]] Enviado el: 27 de junio de 2002 16:38 I'm not sure I understand, but in my server.xml the connector is specified as listening to 8009, so how's that? IJO Please post the log you get when starting tomcat just to be sure.. IJO What i say is that by default the Coyote/JK2 ajp13 port is 8019 no 8009, IJO regarles of what is on server.xml, because jk2 uses jk2.propeties in IJO addition to server.xml, and there by default the JK2 port is 8019.. IJO To be able to use isapi_redirector.dll with jk2 you shopuld change the IJO por in workers.properties for ajp13 to 8019.. IJO Saludos , IJO Ignacio J. Ortega IJO -- IJO To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] IJO For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mime-type setting
Check out the Tomcat 4.x.x conf/web.xml. You can use that format and that ordering and apply it to your own app's web.xml. I don't think that Tomcat 3.3.x uses a conf/web.xml. Also, take a look at the dtd by downloading it. It specifies the tag order. Use the URI in your dtd declaration of your web.xml file and load that in any browser to download it. Jake At 03:32 PM 6/25/2002 +0800, you wrote: Hi all, I want to set mime-type in tomcat 3.3. However, I can't find the web.xml under $TOMCAT_HOME/conf (there is a default web.xml under $TOMCAT_HOME/conf for tomcat 3.2). Also I can't find any document about setting mime-type in tomcat 3.3. Where to set mime-type in order to make tomcat works? Anyway example of web.xml format? Rgds, unplug -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: question about hot deployment and manager app....
Milt, You can set up a static mod_jk.conf file for Apache to load that includes references to contexts that you may not have installed yet, but you plan on installing. Then, once it is actually installed in Tomcat, the redirector will get the request to Tomcat just fine. Just plan a bit in advance. Also, it usually doesn't take long to restart Apache, do adding stuff to the mod_jk.conf and restarting shouldn't be too much of a big deal. Jake At 10:21 PM 6/24/2002 -0500, you wrote: On Mon, 24 Jun 2002, Craig R. McClanahan wrote: On Mon, 24 Jun 2002, Milt Epstein wrote: [ ... ] Thanks for the info. Also, is this something that only applies to Tomcat standalone, or will it work when Tomcat is integrated with Apache? If so, how does it take care of the neccesary Apache httpd directives (either JkMount or WebAppDeploy or whatever) to make sure Apache forwards the appropriate requests to Tomcat. These tasks are targeted at Tomcat standalone. They don't do anything about restarting your web server for you (and, AFAIK, you don't have any choice -- Apache, at least, does not have any notion of dynamic deployment without restarting, although the restart process can be pretty quick). But it's more than just a matter of restarting Apache, right? Even with a restart, Apache has to know about the new URL's/contexts. And can that be done without modifying Apache's httpd.conf file? (I'm asking because we may be setting up an environment with separate service managers and system managers, with the service managers having access to all the Tomcat stuff, but not the Apache stuff -- although they probably will be able to stop/start Apache.) Thanks. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: tomcat won't load oracle driver
Hello Les, I run Tomcat 4.1.3 under j2sdk1.4_01 with classes12.zip (renamed to .jar with is absolutely required). I keep it in TOMCAT_HOME/common/lib. I connect to a pretty old Oracle 8 database and a newer Oracle 8i database. Tomcat and Oracle are *not* on the same machine. I have never hand one ounce of trouble with this setup on any instance of Tomcat including any version of 3.3.x. and 4.x.x. with JDK1.3.x and JDK1.4.x. Just remember that Tomcat will load any file ending in .jar from the lib directories and will ignore any files that don't end it .jar. Jake Tuesday, June 25, 2002, 8:52:08 AM, you wrote: LH OTN has classes12.zip for jdk1.2 and classes111.zip for jdk 1.1 for 8i, and LH classes12.zip for jdk1.2/1.3 and ojdbc14.jar for jdk1.4 for 9i. LH So, no 1.4 support for 8i and no 1.1 support for 9i it seems. LH Take your pick :-) But I still think that TC needs .jar and not .zip LH files LH Oh and I'm not a expert in any of this either BTW... LH Les -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 14:27 To: Tomcat Users List Subject: RE: tomcat won't load oracle driver I think the problem ,ay be that 1.4 uses jdbc v3. The oracle drivers probably have require jdbc v2 hardcoded in them. I remember this being the case for a particular set of drivers, though I'm not absolutely sure it was Oracle. Are there any new ones from Oracle? Andy -Original Message- From: Les Hughes [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 14:17 To: 'Tomcat Users List' Subject: RE: tomcat won't load oracle driver Isnt classes111.zip for 1.1 VMs and classes12.zip for 1.2/1.3 VMs (Can't comment on 1.4)? Also, I think the rename to .jar and stick em in common/lib for TC4 (not sure where on TC3) will help. -Original Message- From: Marius Schwarz [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 14:02 To: Tomcat Users List Subject: Re: tomcat won't load oracle driver Am 23-Jun-02 schrieb Keith Wannamaker: Someone mentioned on -dev that one has to remove the java*.sql classes from the oracle jdbc jar in order to work with jdk 1.4 (since 1.4 began bundling these classes as well) he could extract them and place them in his classpath, that has to work. Gruss -- Ihr POWER-NETZ®-Team POWER-NETZ® Full-Service-Provider Service Tel: 01805 - 57 35 57 (DM 0,24/Min.) Service Fax: 01805 - 57 45 57 (DM 0,24/Min.) Online-Support: Support: 0190 - 15 11 15 (DM 1,21/Min) #http://Support.Power-Netz.de# (kostenlos) #http://Support.Power-Netz.com# (kostenlos) Power-Netz Reeperbahn 157 20359 Hamburg #http://www.Power-Netz.de# #mailto:[EMAIL PROTECTED]# +=+ --I N F O C E N T E R-- + Senden Sie eine leere e-mail an: + Providerwechsel: #mailto:[EMAIL PROTECTED]# + Daten/Preise Webspace: #mailto:[EMAIL PROTECTED]# + Reseller-Programm: #mailto:[EMAIL PROTECTED]# + Dedizierte Server: #mailto:[EMAIL PROTECTED]# + Adult/Erotikserver: #mailto:[EMAIL PROTECTED]# + Domainpreise: #mailto:[EMAIL PROTECTED]# + WebDesign: #mailto:[EMAIL PROTECTED]# + SSL-Zertifikate: #mailto:[EMAIL PROTECTED]# + Online-Datenbanken: #mailto:[EMAIL PROTECTED]# + Geschaeftsbedingungen: #mailto:[EMAIL PROTECTED]# + =+ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: LH mailto:[EMAIL PROTECTED] LH For additional commands, e-mail: LH mailto:[EMAIL PROTECTED] LH -- LH To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] LH For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: R: JDBC Connection
Hello Chris, FYI, the format used for .jar files is zip. So, if you have a zip file, you can just rename it to .jar and that will be *exactly* the same thing as if you unzipped and then jarred the files. Jake Tuesday, June 25, 2002, 11:07:18 AM, you wrote: CF Its not that it doesn't accept ZIP files, just that it doesn't look for them by default. The reason that Tomcat doesn't pick up anything other than jars is that it loops all *.jar files in its CF lib directory and adds CF them to the CLASSPATH before starting java. CF I needed to get a zip file onto the classpath so I edited the startup script so that it also looped .zip files. It worked fine. CF Chris Faulkner AFAIK Tomcat4 doesn't accept ZIPped class archives, but only JARred ones. So, if you use a .zip JDBC driver archive, you should unzip it and either put unzipped classes in classes dir, or archive them in a .jar archive. Regards Alessio -Messaggio originale- Da: Juan [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 19 giugno 2002 12.24 A: [EMAIL PROTECTED] Oggetto: JDBC Connection Hello, I'm trying to connecting with MySQL, but I'm getting the following error: javax.servlet.ServletException: No suitable driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:457) at org.apache.jsp.index$jsp._jspService(index$jsp.java:805) ... The JDBC driver is at the classpath, and I'm able to connect using a standard Java application. But with Tomcat I'm getting an error. Am I missing anything? Thanks in advance, Juan José Velázquez Garcia Web Development www.htmlspider.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - Disclaimer - This email and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) or the taking of any action in reliance on the contents, by persons other than the designated recipient(s) is strictly prohibited. If you have received this email in error, please notify the sender either by telephone or by email and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] CF -- CF To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] CF For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[4]: tomcat won't load oracle driver
Hello Les, Currently I use the JNDI Datasource, although I used to use the Oracle driver with JDBCPool by Bitmechanic: http://www.bitmechanic.com/projects/jdbcpool/ Note that in this case I have classes12.jar in TOMCAT_HOME/common/lib and jdbcpool-0.99.jar in TOMCAT_HOME/lib (or in 4.1.x TOMCAT_HOME/shared/lib). BTW, the way I use JNDI connection pooling with Tomcat-4.1.3 is here: http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 Jake Tuesday, June 25, 2002, 11:02:16 AM, you wrote: LH Hi Jake, LH Thanks for confirming the file rename thing. Are you using a JNDI datasource LH or just Class.forName() with the Oracle driver? LH Les -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 15:59 To: Tomcat Users List Subject: Re[2]: tomcat won't load oracle driver Hello Les, I run Tomcat 4.1.3 under j2sdk1.4_01 with classes12.zip (renamed to .jar with is absolutely required). I keep it in TOMCAT_HOME/common/lib. I connect to a pretty old Oracle 8 database and a newer Oracle 8i database. Tomcat and Oracle are *not* on the same machine. I have never hand one ounce of trouble with this setup on any instance of Tomcat including any version of 3.3.x. and 4.x.x. with JDK1.3.x and JDK1.4.x. Just remember that Tomcat will load any file ending in .jar from the lib directories and will ignore any files that don't end it .jar. Jake Tuesday, June 25, 2002, 8:52:08 AM, you wrote: LH OTN has classes12.zip for jdk1.2 and classes111.zip for jdk 1.1 for 8i, and LH classes12.zip for jdk1.2/1.3 and ojdbc14.jar for jdk1.4 for 9i. LH So, no 1.4 support for 8i and no 1.1 support for 9i it seems. LH Take your pick :-) But I still think that TC needs .jar and not .zip LH files LH Oh and I'm not a expert in any of this either BTW... LH Les -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 14:27 To: Tomcat Users List Subject: RE: tomcat won't load oracle driver I think the problem ,ay be that 1.4 uses jdbc v3. The oracle drivers probably have require jdbc v2 hardcoded in them. I remember this being the case for a particular set of drivers, though I'm not absolutely sure it was Oracle. Are there any new ones from Oracle? Andy -Original Message- From: Les Hughes [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 14:17 To: 'Tomcat Users List' Subject: RE: tomcat won't load oracle driver Isnt classes111.zip for 1.1 VMs and classes12.zip for 1.2/1.3 VMs (Can't comment on 1.4)? Also, I think the rename to .jar and stick em in common/lib for TC4 (not sure where on TC3) will help. -Original Message- From: Marius Schwarz [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 14:02 To: Tomcat Users List Subject: Re: tomcat won't load oracle driver Am 23-Jun-02 schrieb Keith Wannamaker: Someone mentioned on -dev that one has to remove the java*.sql classes from the oracle jdbc jar in order to work with jdk 1.4 (since 1.4 began bundling these classes as well) he could extract them and place them in his classpath, that has to work. Gruss -- Ihr POWER-NETZ®-Team POWER-NETZ® Full-Service-Provider Service Tel: 01805 - 57 35 57 (DM 0,24/Min.) Service Fax: 01805 - 57 45 57 (DM 0,24/Min.) Online-Support: Support: 0190 - 15 11 15 (DM 1,21/Min) #http://Support.Power-Netz.de# (kostenlos) #http://Support.Power-Netz.com# (kostenlos) Power-Netz Reeperbahn 157 20359 Hamburg #http://www.Power-Netz.de# #mailto:[EMAIL PROTECTED]# +=+ --I N F O C E N T E R-- + Senden Sie eine leere e-mail an: + Providerwechsel: #mailto:[EMAIL PROTECTED]# + Daten/Preise Webspace: #mailto:[EMAIL PROTECTED]# + Reseller-Programm: #mailto:[EMAIL PROTECTED]# + Dedizierte Server: #mailto:[EMAIL PROTECTED]# + Adult/Erotikserver: #mailto:[EMAIL PROTECTED]# + Domainpreise: #mailto:[EMAIL PROTECTED]# + WebDesign: #mailto:[EMAIL PROTECTED]# + SSL-Zertifikate: #mailto:[EMAIL PROTECTED]# + Online-Datenbanken: #mailto:[EMAIL PROTECTED]# + Geschaeftsbedingungen: #mailto:[EMAIL PROTECTED]# + =+ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: LH mailto:[EMAIL PROTECTED] LH For additional commands, e-mail: LH mailto:[EMAIL PROTECTED] LH -- LH To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] LH For additional commands, e-mail: mailto:[EMAIL PROTECTED
Re[2]: MOD_JK Problem ?
Hello Mark, A binary version of mod_jk for Windows that works with Apache 2.0.39 has been made available at this site: http://www.acg-gmbh.de/mod_jk/ Note that the only reason the old module didn't work with Apache 2.0.39 is that something changed in Apache, not the Tomcat connectors. The connectors just needed to be compiled against the newer version of Apache. As much as you and I would like the Apache developers to produce binary versions of the software they develop, it is not really their responsibility. It is all of ours. If you believe differently, then you misunderstand open source. I'm not so familiar with how to compile mod_jk, but that is no reason to expect someone else to do it for me. Luckily, people from the open source community pitch in and help each other out. That is what the person at the site mentioned above has done. He's given his time to help out others. This help should not be taken for granted. Your business is not Apache Software's responsibility. They provide the tools. You need to be resourceful, or know someone who is resourceful, enough to use them. And keep in mind that Open source is not free as in free beer, it is free as in freedom of thought and expression. If you don't want to use it, that is up to you, but the source is available for you to use as freely as you like. However, no one owes you anything. Keep that in mind at all times. Jake Monday, June 24, 2002, 7:09:51 AM, you wrote: FM Nothing but agreement here, today will be the 5th business day that I will FM spend trying to figure out why Apache 2 and Tomcat 4 will not work together. FM I should be able to download them configure them and just go. Everyone says FM use Apache/Tomcat it's free, what they don't say is it's free for a reason. FM -Thanks, FM Mark FM -Original Message- FM From: Turner, John [mailto:[EMAIL PROTECTED]] FM Sent: Monday, June 24, 2002 6:47 AM FM To: 'Tomcat Users List' FM Subject: RE: MOD_JK Problem ? FM Well said, and I agree 100%. I spent 8 business days trying to get Apache 2 FM with Tomcat 4 working, both with mod_webapp and mod_jk, before giving up and FM going back to Apache 1.3. Granted, I am not experienced with tomcat, which FM may account for some of the delay, but your comments are right on the money. FM All due respect to the developers, but the idea that Apache 2, Tomcat 4, and FM the connectors are all separate projects, with little or no coordination (as FM far as I can tell) is really disappointing. To me, that seems like a big FM mistake. FM John Turner FM [EMAIL PROTECTED] FM -Original Message- FM From: Andy Eastham [mailto:[EMAIL PROTECTED]] FM Sent: Friday, June 21, 2002 6:26 PM FM To: Tomcat Users List FM Subject: RE: MOD_JK Problem ? FM I think everyone who uses Tomcat should back off using Apache2 until all the FM connectors and more so the documentation get beyond pre-alpha state. FM I'm a big fan of Apache and Tomcat, but I'm afraid the current state of the FM connectors SUCKS. FM I've held my tongue from writing this email for over a month, but now I FM can't help it. I've wasted days trying to get this working myself, and I've FM downgraded back to apache 1 again... FM Given that Apache Tomcat is the reference Servlet Implementation, I think FM that something needs to be done soon. You basically can't use it with the FM world's most popular web server. It seems to me that there is very little FM co-ordination between the separate Apache, Tomcat and Apache-Tomcat FM connectors projects. Just take a look under FM http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ - apart from FM coyote, there is rather a sad dearth of content. FM I'm very sorry to have written this message which I'm sure will offend some FM very hard working people. I don't want to offend anyone, but I think FM someone needs to say this. The Apache organisation has set and achieved FM some very high standards, and this area is significantly below par. FM Sorry. FM Andy -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: 21 June 2002 14:03 To: 'Tomcat Users List' Subject: RE: MOD_JK Problem ? Sounds like I need to back off from 4.1.3beta and go back to the last 4.0.x build. Thanks! Jerry Jalenak -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 7:58 AM To: 'Tomcat Users List' Subject: RE: MOD_JK Problem ? According to this thread, there seems to be a problem with mod_jk and the latest apache (2.0.39): http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.h tml John Turner [EMAIL PROTECTED] http://www.aas.com -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 20, 2002 7:50 PM To: '[EMAIL PROTECTED]' Subject: MOD_JK Problem ? All, I've been trying to get the following configuration to work. Windows NT Apache 2.0.39 Tomcat 4.1.3
Re: how to set environment variable in tomcat?
Hello Johnny, Use context-param's in your web.xml. For instance: context-param param-namedatabaseUrl/param-name param-valuejdbc:postgresql:msrd/param-value /context-param Context parameters can be added to your web.xml near the top of the file after display-name and description You can reference your parameters by doing this: String myparameter = (String) context.getInitParameter(databaseUrl); You can also use parameters for specific servlets: servlet servlet-namelog4j-init/servlet-name servlet-classorg.enhydra.barracuda.core.util.logging.Log4jInit/servlet-class init-param !-- relative path to config file within current webapp -- param-namelog4j-config/param-name param-valueWEB-INF/log4j.xml/param-value /init-param /servlet And retrieve that by using the following in the init() method of said servlet: String configPath = getInitParameter(log4j-init); You can also retrieve stuff from JNDI using Context Resources which are specified in the server.xml. I'll let you read up on that in the Tomcat docs. Does that help? Jake Monday, June 24, 2002, 4:26:51 AM, you wrote: J to all the tomcat users, J if i want to set my own environment variable for my application running in J tomcat, what should i do? do i have to edit the server.xml? J in jserv, we using ApJServEnvVar for defining the environment variable in J jserv.conf, so how about tomcat? J regards J johnny. J -- J To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] J For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[4]: MOD_JK Problem ?
Hello Mark, Sorry, didn't get that email before I sent mine. Also, I don't use Solaris so I can't help you there. Good luck! Jake Monday, June 24, 2002, 9:42:52 AM, you wrote: FM Thanks, for your reply but I think I apologized already. Still I do agree FM with what you say (for the most part). Also, I'm trying to build for FM Solaris 8. Got a binary for that? I do, but mine doesn't seem to be FM working. FM Thanks, FM -Mark FM -Original Message- FM From: Jacob Kjome [mailto:[EMAIL PROTECTED]] FM Sent: Monday, June 24, 2002 9:39 AM FM To: Tomcat Users List FM Subject: Re[2]: MOD_JK Problem ? FM Hello Mark, FM A binary version of mod_jk for Windows that works with Apache 2.0.39 has FM been made available at this FM site: FM http://www.acg-gmbh.de/mod_jk/ FM Note that the only reason the old module didn't work with Apache 2.0.39 is FM that something changed in Apache, not the Tomcat connectors. The connectors FM just needed to be compiled against the newer version of Apache. FM As much as you and I would like the Apache developers to produce binary FM versions of the software they develop, it is not really their FM responsibility. It is all of ours. If you believe differently, then you FM misunderstand open source. I'm not so familiar with how to compile mod_jk, FM but that is no reason to expect someone else to do it for me. Luckily, FM people from the open source community pitch in and help each other out. FM That is what the person at the site mentioned above has done. He's given FM his time to help out others. This help should not be taken for granted. FM Your business is not Apache Software's responsibility. They provide the FM tools. You need to be resourceful, or know someone who is resourceful, FM enough to use them. And keep in mind that Open source is not free as in FM free beer, it is free as in freedom of thought and expression. If you FM don't want to use it, that is up to you, but the source is available for you FM to use as freely as you like. However, no one owes you anything. Keep that FM in mind at all times. FM Jake FM Monday, June 24, 2002, 7:09:51 AM, you wrote: FM Nothing but agreement here, today will be the 5th business day that FM I will spend trying to figure out why Apache 2 and Tomcat 4 will not FM work together. I should be able to download them configure them and FM just go. Everyone says use Apache/Tomcat it's free, what they don't FM say is it's free for a reason. FM -Thanks, FM Mark FM -Original Message- FM From: Turner, John [mailto:[EMAIL PROTECTED]] FM Sent: Monday, June 24, 2002 6:47 AM FM To: 'Tomcat Users List' FM Subject: RE: MOD_JK Problem ? FM Well said, and I agree 100%. I spent 8 business days trying to get FM Apache 2 FM with Tomcat 4 working, both with mod_webapp and mod_jk, before giving up FM and FM going back to Apache 1.3. Granted, I am not experienced with tomcat, FM which FM may account for some of the delay, but your comments are right on the FM money. FM All due respect to the developers, but the idea that Apache 2, Tomcat 4, FM and FM the connectors are all separate projects, with little or no coordination FM (as FM far as I can tell) is really disappointing. To me, that seems like a FM big FM mistake. FM John Turner FM [EMAIL PROTECTED] FM -Original Message- FM From: Andy Eastham [mailto:[EMAIL PROTECTED]] FM Sent: Friday, June 21, 2002 6:26 PM FM To: Tomcat Users List FM Subject: RE: MOD_JK Problem ? FM I think everyone who uses Tomcat should back off using Apache2 until all FM the FM connectors and more so the documentation get beyond pre-alpha state. FM I'm a big fan of Apache and Tomcat, but I'm afraid the current state of FM the FM connectors SUCKS. FM I've held my tongue from writing this email for over a month, but now I FM can't help it. I've wasted days trying to get this working myself, and FM I've FM downgraded back to apache 1 again... FM Given that Apache Tomcat is the reference Servlet Implementation, I FM think FM that something needs to be done soon. You basically can't use it with FM the FM world's most popular web server. It seems to me that there is very FM little FM co-ordination between the separate Apache, Tomcat and Apache-Tomcat FM connectors projects. Just take a look under FM http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ - apart from FM coyote, there is rather a sad dearth of content. FM I'm very sorry to have written this message which I'm sure will offend FM some FM very hard working people. I don't want to offend anyone, but I think FM someone needs to say this. The Apache organisation has set and achieved FM some very high standards, and this area is significantly below par. FM Sorry. FM Andy -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: 21 June 2002 14:03 To: 'Tomcat Users List' Subject: RE: MOD_JK Problem ? Sounds like I need to back off from 4.1.3beta and go back to the last 4.0
Re: javax.naming.NamingException: Cannot create resource instance
Hello Kumar, Try using the username parameter. Also, the solution that has worked flawlessly for me is here: http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 Note that this is with the new 4.1.x versions of Tomcat. If you are using 4.0.x versions, your mileage may vary. Jake Monday, June 24, 2002, 10:00:38 AM, you wrote: K Hi, KCan anyone help me how to configure JDBC DataSource using IBM DB2 as the K database.I had gone through the solution Generic DataSource Resource K Factory Available. JDBC Data Sources. posted by Mr.Anthony Dodd.But there K the solution was explained using Oracle database.Has anyone tried K configuring a DataSource using DB2? K I'm using IBM DB2 7.1 (Driver - COM.ibm.db2.jdbc.app.DB2Driver) K Tomcat 4.0.2 K Here are the snippets for server.xml,web.xml and the JVM stack trace: K server.xml: K Context path=/test docBase=test debug=0 reloadable=true K Resource name=jdbc/myDS type=COM.ibm.db2.jdbc.DB2DataSource K reloadable=true auth=Container/ K ResourceParams name=jdbc/myDS Kparameter K namefactory/name K valueorg.apache.naming.factory.DataSourceFactory/value K/parameter KParameter K nameuser/name K valuedb2admin/value K/Parameter KParameter K namepassword/name K valuedb2admin/value K/Parameter KParameter K namedriverClassName/name K valueCOM.ibm.db2.jdbc.app.DB2Driver/value K/Parameter KParameter K namedriverName/name K valuejdbc:db2:sample/value K/Parameter K /ResourceParams K Realm className=org.apache.catalina.realm.JDBCRealm K connectionName=db2admin K connectionPassword=db2admin K connectionURL=jdbc:db2:sample K digest=SHA K driverName=COM.ibm.db2.jdbc.app.DB2Driver K roleNameCol=role_name K userCredCol=password K userNameCol=user_name K userRoleTable=user_roles K userTable=users / K /Context K web.xml: K resource-ref K descriptionDS resource factory/description K res-ref-namejdbc/myDS/res-ref-name K res-typeCOM.ibm.db2.jdbc.DB2DataSource/res-type K res-authContainer/res-auth K /resource-ref K I get the following error when i try to lookup the datasource in my JSP: K ctx (java:comp/env) = org.apache.naming.NamingContext@42a80d K obj = myDS: org.apache.naming.ResourceRef K Error processing the request (doGet) : Cannot create resource instance K javax.naming.NamingException: Cannot create resource instance K at org.apache.naming.NamingContext.lookup(NamingContext.java:837) K at org.apache.naming.NamingContext.lookup(NamingContext.java:181) K at org.apache.naming.NamingContext.lookup(NamingContext.java:822) K at org.apache.naming.NamingContext.lookup(NamingContext.java:194) K at CheckDBServlet.doGet(CheckDBServlet.java:40) K at javax.servlet.http.HttpServlet.service(HttpServlet.java:1125) K at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) K at K org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application K FilterChain.java:247) K at K org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh K ain.java:193) K at K org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja K va:243) K at K org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 K 66) K at K org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) K at K org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) K at K org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja K va:215) K at K org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 K 66) K at K org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase K .java:472) K at K org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 K 64) K at K org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) K at K org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) K at K org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366) K at K org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 K ) K at K org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 K 66) K at K org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) K at K org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 K 64) K at K org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) K at K org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) K at K org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java K :163) K at K org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 K 66)
Re: mod_jk2 binary available here
Hello Rory, Actually, a working version of mod_jk2.dll has already been provided by Apache here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/ However, the real issue now is how does one configure all this? Rory, you would be providing a super service to a lot of people if you would provide a minimal configuration of mod_jk2 with *all* files involved. thanks, Jake Monday, June 24, 2002, 10:01:13 AM, you wrote: DR Hello all DR I have a working binary of mod_jk2.dll (working with Apache 2.0.39 on Win2k DR Server) if anyone would like to try it out. No guarantees though! DR You can get it here -- http://www.mycgiserver.com/~worrel DR cheers DR Rory Douglas DR Sun Chemical Corporation DR (201) 224-4600 x133 DR [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcatAuthentication=false, BASIC Auth, Apache, and CoyoteConnector?
With the old ajp13 handler, you used to be able to write tomcatAuthentication=false and take the Basic Authentication information from Apache and read it in Tomcat. If you didn't do this, tomcatAuthentication would default to true and a call to request.getRemoteUser() would return null if the authentication was done through Apache. It looked something like this: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 tomcatAuthentication=false/ Now I am trying to use the CoyoteConnector, but tomcatAuthentication=false doesn't seem to apply since I still get null when doing request.getRemoteUser() when authenticating through Apache. Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false tomcatAuthentication=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ So, what is the equivalent to tomcatAuthentication for the CoyoteConnector? Jake -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: tomcatAuthentication=false, BASIC Auth, Apache, and CoyoteC onnector?
Hello Ignacio, Sorry Ignacio, I should have mentioned what server I am running. I am running Tomcat-4.1.3 fronted by Apache 2.0.39 on Win2k using mod_jk (not mod_jk2) compiled for 2.0.39. Jake Monday, June 24, 2002, 2:57:22 PM, you wrote: De: Jacob Kjome [mailto:[EMAIL PROTECTED]] Enviado el: 24 de junio de 2002 21:17 IJO Maybe is not implemented yet, you are using preAlpha Code.. IJO Anyway, Thanks, i'll take a look.. IJO Saludos , IJO Ignacio J. Ortega IJO -- IJO To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] IJO For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
question about hot deployment and manager app....
Hi, I've been using the ant tasks for the manager app and they are really slick. Makes testing much easier. However, how does one dynamically install an application when one has to specify context stuff in the server.xml or in a standalone [myapp].xml (using Tomcat 4.1.3)? I'd like to run my builds from anywhere and not have Tomcat attempt to load the app up at startup. I need to specify the context in the [myapp].xml because I have Reource and ResourceParams for JDBC connection pooling. Is this impossible or am I just missing something? -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: mod_jk /examples/* works but /servlet/* doesn't
Hello Avnish, here's the scoop. For each context you want to map from Apache to Tomcat, do the following (examples based on the Win32 platform): First, the common stuff at the top of the mod_jk.conf file (Note that you would put the following info in the mod_jk.conf which would be included at the bottom of your httpd.conf): IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile C:/Program Files/Apache Group/Jakarta/tomcat-4.1.3/conf/mod_jk/workers.properties JkLogFile C:/Program Files/Apache Group/Jakarta/tomcat-4.1.3/logs/mod_jk.log JkLogLevel emerg This is for when you want Apache to direct *everything* to tomcat: JkMount /manager ajp13 JkMount /manager/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 etc... ... ... Note that you can do: JkMount /servlet/* ajp13 However, when Tomcat gets this request, it will be serving servlets out of the ROOT context whereas static files that come in requests such as /index.html will be served out of Apache's web root. If your set up is this way, more power to you. You can do the following, though: JkMount / ajp13 JkMount /* ajp13 That will make Tomcat take over Apache's web root forcing *all* requests to Tomcat. This is for when you want Apache to serve static content and only direct dynamic content to Tomcat: localhost:/examples # Static files Alias /examples C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples Directory C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples/WEB-INF/ AllowOverride None deny from all /Directory Directory C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples/META-INF/ AllowOverride None deny from all /Directory JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/SendMailServlet ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/snoop ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servlet/* ajp13 Notice that when you don't send everything to Tomcat, you have to be a bit more careful about what you do. BTW, you can autogenerate this in Tomcat 4 by putting the following within any one of you host elements in server.xml: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false/ That should be it other than the workers.properties file I am attaching. Does this help? Jake Friday, June 21, 2002, 10:43:32 AM, you wrote: AP Brendan, AP Thanks extending your help. AP I can go with individual deployment, not a big problem (but still is a AP problem isn't it). But just want to know when this isn't supported than why AP the hell so many sites (I have seen more than 4-5 sites, one site setup J2EE AP on windows and use ONLY these two directives, /*.jsp and /servlet/*) AP mentions this thing? Why don't they clearly write it down it doesn't work AP this way ? This question is not about you or me, it's about them who claim AP this works when in fact it doesn't. AP I have verified same behavior on 3 different machine with 100% individual AP setups with same results. AP Again I would like to ask EVERYONE, HAS ANY BODY SUCCESSFULLY TRIED AP FOLLOWING DIRECTIVE ? AP JkMount /servlet/* ajp13 AP If yes, PLEASE let me know on which platform. I have spent nearly more than AP three days setting it up on three different machines. Am I missing something AP ? AP Thanks AP Avnish. AP - Original Message - AP From: [EMAIL PROTECTED] AP To: Tomcat Users List [EMAIL PROTECTED] AP Sent: Friday, June 21, 2002 8:37 PM AP Subject: Re: mod_jk /examples/* works but /servlet/* doesn't AP Hi Avnish, AP To be honest, I've always just set a line in the httpd.conf for each webapp AP / context deployed. AP All the documentation/examples i've seen show a JKMount being used for each AP context. AP I generally don't need more than one or two webapps on each server so it's AP not usually a problem for me. AP Plus I only bother setting up the Apache mod_jk config when I put a web AP application live - during servlet development and debugging I like to keep AP the setup as simple as possible. AP Good Luck AP Brendan. AP ps. remember to Alias your $CATALINA_HOME/webapps/appname directory in AP httpd.conf to get Apache to serve the static content in your webapp AP
Re: minimal config files for mod_jk2 request....
Ok, I've seen others clamoring for this in other messages. Surely there is someone out there who has successfully gotten mod_jk2 to work for them. All I ask for is a sample configuration example with *all* files required. I just did this for another person on the list having trouble with mod_jk. How about some help with mod_jk2? BTW, I did find the new auto-generators in the tomcat-connectors. They are in the package org.apache.jk.config. Here's how I ran it on Windows: D:\myclasses\tomcatjava -classpath .;tomcat-util.jar;commons-logging.jar org.ap ache.jk.config.WebXml2Jk -docBase %CATALINA_HOME%\webapps\examples It writes the files to $CATALINA_HOME/webapp/examples/WEB-INF/jk2 I'm attaching the files that it wrote out which are jk.conf, jk2.conf, and jk2map.properties. However, there is still the issue with proper configuration of jk2.properties, workers2.properties, and what are .shm files referred to by both jk2.properties and workers2.properties? Someone must have an example of this working. Jake Thursday, June 20, 2002, 11:42:41 AM, you wrote: JK Hi, JK There seems to be sparse documentation on how to configure mod_jk2. JK Does anyone have some example configuration files and instructions on JK use? I'll keep searching and post the example myself if I find it. JK thanks, JK Jake JK -- JK To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] JK For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] jk2_autogenerated-conf.zip Description: Zip compressed data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: 4.1.3 Beta mod_jk2 ALMOST working
Hello John, That isn't an issue anymore. The nightly binaries were rebuilt. However, that only includes mod_jk2, not mod_jk. The fact that Rory got Apache running at all means he was using a binary compatible with Apache 2.0.39. Now if someone can provide a configuration example for how mod_jk2 works! Jake Friday, June 21, 2002, 11:48:59 AM, you wrote: TJ According to this thread, there seems to be a problem with mod_jk and the TJ latest apache (2.0.39): TJ http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.html TJ John Turner TJ [EMAIL PROTECTED] TJ http://www.aas.com TJ -Original Message- TJ From: Douglas, Rory [mailto:[EMAIL PROTECTED]] TJ Sent: Friday, June 21, 2002 12:11 PM TJ To: Tomcat Users List (E-mail) TJ Subject: 4.1.3 Beta mod_jk2 ALMOST working TJ Hi there TJ I'm trying Apache 2.0.39 and Tomcat 4.1.3 Beta on a Win2K machine with TJ mod_jk2 nightly binary. TJ I'm doing all my configuration through workers2.properties (copied from TJ jtc-src in the 4.1.3 download). My Coyote JK2 connector is on the default TJ port 8009 and Apache2 is on port 9000. TJ It's almost working (I think). I can start Apache with no errors. My TJ Apache2 error log registers: TJ [warn] workerEnv.init() ok C:/Dev/Apache2/conf/workers2.properties TJ [warn] mod_jk child init 1 -1 TJ which seems good. I can then browse localhost:9000/jkstatus and see a JK2 TJ status page. TJ However, if I try to browse localhost:9000/examples (I have TJ [uri:/examples/*] set up) then I get 500 error from Apache. The log shows: TJ [warn] service.init() Can't find child in scoreboard 2208 TJ [error] channelSocket.connect() connect failed dlportaldevsys1:8009 61 TJ Unknown error TJ [error] ajp13.connect() failed ajp13:dlportaldevsys1:8009 TJ [error] ajp13.service() failed to connect endpoint errno=61 Unknown error TJ [warn] ajp13.done() close endpoint ajp13:dlportaldevsys1:8009 error_state TJ 1 TJ [error] mod_jk.handler() Error connecting to tomcat 21000 TJ The first line doesn't seem too serious, but line two's connect failed...61 TJ Unknown error is puzzling. I definitely have a connector configured on TJ 8009, and I believe I've set the right className and TJ protocolHandlerClassName attributes as well (see shortened version below). TJ Connector className=org.apache.coyote.tomcat4.CoyoteConnector TJ port=8009 TJ protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler TJ useURIValidationHack=false TJ Factory TJ className=org.apache.catalina.net.DefaultServerSocketFactory/ TJ /Connector TJ Does anyone know what Error 61 is? Any help would be most appreciated. This TJ is the closest I've come to getting Apache2/Tomcat4/mod_jk to work on Win2K. TJ I suspect perhaps my jk2.properties file is incorrect. By default TJ channelSocket.port=8019 is there, changing to 8009 gives me different TJ errors, namely Bad file descriptor, BAD MESSAGE etc. TJ Thanks apologies for the long, code-ridden mail TJ Rory Douglas TJ Sun Chemical Corporation TJ (201) 224-4600 x133 TJ [EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
minimal config files for mod_jk2 request....
Hi, There seems to be sparse documentation on how to configure mod_jk2. Does anyone have some example configuration files and instructions on use? I'll keep searching and post the example myself if I find it. thanks, Jake -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: getSession always returns null
Hello Jerry, don't you need to do getSession(true) in order for getSession to return a non-null session whether one exists currently or not? If you just call getSession(), it will return null if the current session is null (not created yet). Jake Thursday, June 20, 2002, 2:17:45 PM, you wrote: JJ I have setup Apache with Tomcat on my NetWare 6.0 server. Everything is working fine (so far) except for getSession always returns null. The Session example servlet as well as every test I have JJ tried has had the same result. Has anyone else experience this problem? Any suggestions? Thanks -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context I added doesn't load. Tomcat 4.0.3, Mac OS X, java 1.3.1, Apache
If you are getting a parse error in the web.xml, a good thing to do would be to get a decent xml editor and validate the web.xml against the dtd. It should be able to point you to exactly where the parse error is. Otherwise, if you want to post your web.xml to the list, or just send it to me, I can see if I can see where the problem lay. Jake At 09:45 PM 6/15/2002 -0400, you wrote: I checked the log file for /mine: 2002-06-15 21:36:23 StandardContext[/mine]: Error initializing naming context for context /mine 2002-06-15 21:36:50 WebappLoader[/mine]: Deploying class repositories to work directory /usr/local/jakarta-tomcat-4.0.3/work/localhost/mine 2002-06-15 21:36:50 WebappLoader[/mine]: Deploy JAR /WEB- INF/lib/datetime.jar to /usr/local/jakarta- tomcat-4.0.3/webapps/mine/WEB-INF/lib/datetime.jar 2002-06-15 21:36:50 WebappLoader[/mine]: Reloading checks are enabled for this Context 2002-06-15 21:36:50 StandardManager[/mine]: Seeding random number generator class java.security.SecureRandom 2002-06-15 21:36:50 StandardManager[/mine]: Seeding of random number generator has been completed 2002-06-15 21:36:53 ContextConfig[/mine] Parse error in application web.xml org.xml.sax.SAXParseException: The content of element type servlet is incomplete, it must match (icon?,servlet-name,display- name?,description?,(servlet-class|jsp-file),init-p$ at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213) at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError( XMLValidator.java:1851) --- /mine in server.xml: Context path=/mine docBase=mine debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_mine_log. suffix=.txt timestamp=true/ /Context Clearly there's something wrong..however I don't know what it means.. Michael On Saturday, June 15, 2002, at 06:28 PM, Jacob Kjome wrote: The servlet-name parameter inside servlet-mapping must match up *exactly* with the servlet-name inside the servlet element. So, try the follwing exactly as written: servlet servlet-nameHelloServlet/servlet-name servlet-classHi/servlet-class /servlet servlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/Hi/url-pattern /servlet-mapping Jake At 01:39 PM 6/15/2002 -0400, you wrote: hi, I tried your suggestions and it still can't fine /mine ... I removed the space in the servlet name, and made sure the servlet mapping is called Hi, web.xml: You may define any number of servlet mappings, including zero. It is also legal to define more than one mapping for the same servlet, if you wish to. -- servlet-mapping servlet-nameHi/servlet-name url-pattern/Hi/url-pattern /servlet-mapping - The servlet name tag: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet give it a try: www.taoki.org:8080/mine/Hi -- Also, here's the context for /mine in server.xml: Context path=/mine docBase=mine debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_mine_log. suffix=.txt timestamp=true/ /Context !-- Tomcat Examples Context -- -- Sorry about this...I really want to develop webapps in Java!! Hmm maybe I should buy WebObjects ... hehe Michael On Friday, June 14, 2002, at 11:54 PM, Jacob Kjome wrote: You need to either provide a servlet mapping for your Hi servlet or access it like this: http://localhost:8080/mine/servlet/Hi Tomcat provides a default servlet mapping of /servlet/* in its web.xml in TOMCAT_HOME/conf Also, you probably want to keep your servlet-name values non-spaced. For instance, here is what you wrote: servlet servlet-nameInitial Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet You probably want to do soemthing like: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet Actually, you can also access your servlet by its servlet name like this: http://localhost:8080/mine/servlet/Initial_Servlet This efficacy of this is more apparent when your servlet is part of a package such as: org.mycompany.myproject.core.tests.servlet.Hi So, you would have: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet- classorg.mycompany.myproject.core.tests.servlet.Hi/servlet-class /servlet Which can be accesed via: http://localhost:8080/mine/servlet/org.mycompany.myproject.core.tests.servlet. Hi
Re: Context I added doesn't load. Tomcat 4.0.3, Mac OS X, java 1.3.1, Apache
The servlet-name parameter inside servlet-mapping must match up *exactly* with the servlet-name inside the servlet element. So, try the follwing exactly as written: servlet servlet-nameHelloServlet/servlet-name servlet-classHi/servlet-class /servlet servlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/Hi/url-pattern /servlet-mapping Jake At 01:39 PM 6/15/2002 -0400, you wrote: hi, I tried your suggestions and it still can't fine /mine ... I removed the space in the servlet name, and made sure the servlet mapping is called Hi, web.xml: You may define any number of servlet mappings, including zero. It is also legal to define more than one mapping for the same servlet, if you wish to. -- servlet-mapping servlet-nameHi/servlet-name url-pattern/Hi/url-pattern /servlet-mapping - The servlet name tag: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet give it a try: www.taoki.org:8080/mine/Hi -- Also, here's the context for /mine in server.xml: Context path=/mine docBase=mine debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_mine_log. suffix=.txt timestamp=true/ /Context !-- Tomcat Examples Context -- -- Sorry about this...I really want to develop webapps in Java!! Hmm maybe I should buy WebObjects ... hehe Michael On Friday, June 14, 2002, at 11:54 PM, Jacob Kjome wrote: You need to either provide a servlet mapping for your Hi servlet or access it like this: http://localhost:8080/mine/servlet/Hi Tomcat provides a default servlet mapping of /servlet/* in its web.xml in TOMCAT_HOME/conf Also, you probably want to keep your servlet-name values non-spaced. For instance, here is what you wrote: servlet servlet-nameInitial Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet You probably want to do soemthing like: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet Actually, you can also access your servlet by its servlet name like this: http://localhost:8080/mine/servlet/Initial_Servlet This efficacy of this is more apparent when your servlet is part of a package such as: org.mycompany.myproject.core.tests.servlet.Hi So, you would have: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet- classorg.mycompany.myproject.core.tests.servlet.Hi/servlet-class /servlet Which can be accesed via: http://localhost:8080/mine/servlet/org.mycompany.myproject.core.tests.servlet. Hi or the more sane URL... http://localhost:8080/mine/servlet/Initial_Servlet If you add a mapping, it gets even easier: servlet-mapping servlet-nameInitial_Servlet/servlet-name url-pattern/hi/url-pattern /servlet-mapping Now you can access it as: http://localhost:8080/mine/hi or even... servlet-mapping servlet-nameInitial_Servlet/servlet-name url-pattern/hello.html/url-pattern /servlet-mapping http://localhost:8080/mine/hello.html You should grab a good servlet book and read it. You should have this stuff down within the first few chapters. later, Jake At 09:41 PM 6/14/2002 -0400, you wrote: Hi I added a new context to my /usr/local/jakarta- tomcat-4.0.3/conf/server.xml called mine: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ !-- you probably want to set reloadable to true during development, but you should set it to be false in production. -- Context path=/mine docBase=mine debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_mine_log. suffix=.txt timestamp=true/ /Context !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ --- /usr/local/jakarta
Re: manager not accepting the username and password
Not sure if this is true, but somewhere I read that you have to have both manager and admin roles assigned to the user attempting access to the manager context. Jake At 04:37 PM 6/14/2002 +0530, you wrote: Hi, I have installed my tomcat 4.0.3. i had changed the user name, password and role in tomcat-users.xml file to what i needed and that time it was working. Now when i give the same user id and password it is not accepting. I cant understand this weird behaviour. I have checked the tomcat-users file, and everything is fine as it should be. Please somebody could throw some light on where i must have gone wrong. Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1031 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
Well, I confess that I've never tried this on 4.0.3. I guess your solution is to upgrade to 4.1.3 beta. There is *no* Tyrex to give you any phantom hsql driver issues. So, I guess my guarantee only applies to 4.1.3 that I've actually tested this on. I suggest the upgrade. Jake At 10:23 AM 6/14/2002 +0200, you wrote: Jacob Kjome wrote: The definitive solution has been provided by Leslie Hughes [EMAIL PROTECTED] here: snip So, please, do yourselves a favor and ignore the docs for a bit on this one. Copy the configuration line for line that Leslie has provided. Then, of course, change the values to match your setup. I *guarantee* this works and it is the standard way it is supposed to be done. Maybe this DataSource thread can finally be put to rest? I'd *love* this thread to go away and die, but until JNDI DataSource can be made to work for all of us, it's gonna run run! As my previous post indicated, I am using Les Hughes proposed solution, and I *still* get a Tyrex exception, because it's trying to instantiate the mythical hsql driver. Has anybody got any suggestions other than it works for me; I don't mind delving into the code, but it'd be nice to know where to start looking! Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context I added doesn't load. Tomcat 4.0.3, Mac OS X, java 1.3.1, Apache
You need to either provide a servlet mapping for your Hi servlet or access it like this: http://localhost:8080/mine/servlet/Hi Tomcat provides a default servlet mapping of /servlet/* in its web.xml in TOMCAT_HOME/conf Also, you probably want to keep your servlet-name values non-spaced. For instance, here is what you wrote: servlet servlet-nameInitial Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet You probably want to do soemthing like: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet Actually, you can also access your servlet by its servlet name like this: http://localhost:8080/mine/servlet/Initial_Servlet This efficacy of this is more apparent when your servlet is part of a package such as: org.mycompany.myproject.core.tests.servlet.Hi So, you would have: servlet servlet-nameInitial_Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classorg.mycompany.myproject.core.tests.servlet.Hi/servlet-class /servlet Which can be accesed via: http://localhost:8080/mine/servlet/org.mycompany.myproject.core.tests.servlet.Hi or the more sane URL... http://localhost:8080/mine/servlet/Initial_Servlet If you add a mapping, it gets even easier: servlet-mapping servlet-nameInitial_Servlet/servlet-name url-pattern/hi/url-pattern /servlet-mapping Now you can access it as: http://localhost:8080/mine/hi or even... servlet-mapping servlet-nameInitial_Servlet/servlet-name url-pattern/hello.html/url-pattern /servlet-mapping http://localhost:8080/mine/hello.html You should grab a good servlet book and read it. You should have this stuff down within the first few chapters. later, Jake At 09:41 PM 6/14/2002 -0400, you wrote: Hi I added a new context to my /usr/local/jakarta- tomcat-4.0.3/conf/server.xml called mine: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ !-- you probably want to set reloadable to true during development, but you should set it to be false in production. -- Context path=/mine docBase=mine debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_mine_log. suffix=.txt timestamp=true/ /Context !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ --- /usr/local/jakarta-tomcat-4.0.3/webapps/mine/WEB-INF/web.xml : You can define any number of servlets, including zero. -- servlet servlet-nameInitial Servlet/servlet-name description A Servlet to test Tomcat /description servlet-classHi/servlet-class /servlet -- /usr/local/jakarta-tomcat-4.0.3/webapps/mine/WEB-INF/classes/: Hi.class Hi.java When I do a: http://localhost:8080/mine/Hi in a web browser.. I get a Tomcat resource not found: Apache Tomcat/4.0.3 - HTTP Status 404 - /mine/Hi type Status report message /mine/Hi description The requested resource (/mine/Hi) is not available. ... I know Tomcat is running however since http://localhost:8080/examples/servlet/RequestInfoExample will run that servlet. My server is probably running right now: http://www.taoki.org:8080/examples/servlet/RequestInfoExample any help would be appreciated! Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Having trouble getting mod_jk.conf generated...
I get mine printed out with the following just inside my Host element... Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false/ Jake At 08:47 PM 6/14/2002 -0400, you wrote: Trying to run Tomcat 4.0.3 with APcahe 1.3 on a lInux box (RH7.2). Can't seem to get the mod_jk.conf file generated. If I add the directive: Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache/libexec/mod_jk.so jkDebug=info workersConfig=/var/tomcat4/conf/jk/workers.properties jkLog=/var/tomcat4/logs/mod_jk.log debug=1/ right after the Server def, the following msg appears in catalina.out: Unable to open config file Starting service Tomcat-Apache Apache Tomcat/4.0.3 ls -l /var/tomcat4/conf/jk/workers.properties shows the file exists. Any help appreciated! Ed
Re[2]: help launching with catalina.bat
Hello Steven, Actually, you can leave the directory as-is, but refer to it like this: CATALINA_BASE=C:\Apache\Tomcat~1 Do the same for the other environment vars. That give Tomcat a directory to look at with no spaces and NT will resolve the directory to the proper C:\Apache\Tomcat 4.0 Jake Thursday, June 13, 2002, 12:13:19 PM, you wrote: SC Remove the space from your CATALINA_BASE (and _HOME) variables. Make it C:\Apache\Tomcat4.0. It thinks the 4.0 after the space is a package and class so it can't find 4/0. SC /S SC Kevin O'Connor [EMAIL PROTECTED] wrote: i get this error message... C:\Apache\Tomcat 4.0\bincatalina run Using CATALINA_BASE: C:\Apache\Tomcat 4.0\ Using CATALINA_HOME: C:\Apache\Tomcat 4.0\ Using CATALINA_TMPDIR: C:\Apache\Tomcat 4.0\temp Using JAVA_HOME: c:\jdk1.3.1_02 Exception in thread main java.lang.NoClassDefFoundError: 4/0 Any suggestions? Thanks, Kevin contact nameKevin O'Connor/name email[EMAIL PROTECTED]/email contact -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Using catalina run fails...
Hello Bernard, Well, that is almost certainly not the case. Here is where my catalina install is: C:\Program Files\Apache Group\Jakarta\tomcat-4.1.3 Here is how my CATALINA_HOME environment var is set up: CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\tomcat-4.1.3 I have absolutely no issues with this. Everything works perfectly. Jake Thursday, June 13, 2002, 12:33:10 PM, you wrote: BC Suspect the problem is with the . in your directory name Tomcat 4.0. It BC seems to be interpreted as part of the package. Try naming it something BC else.. safest to avoid spaces and .s. BC - Original Message - BC From: Jakarta Tomcat Newsgroup @[EMAIL PROTECTED] BC To: [EMAIL PROTECTED] BC Sent: Friday, June 14, 2002 12:55 AM BC Subject: Using catalina run fails... Subject: Using catalina run fails... From: Kevin O'Connor [EMAIL PROTECTED] === Any suggestions on this... C:\Apache\Tomcat 4.0\bincatalina run Using CATALINA_BASE: C:\Apache\Tomcat 4.0\ Using CATALINA_HOME: C:\Apache\Tomcat 4.0\ Using CATALINA_TMPDIR: \C:\Apache\Tomcat 4.0\temp Using JAVA_HOME: c:\jdk1.3.1_02 Exception in thread main java.lang.NoClassDefFoundError: 4/0 Tomcat starts and runs fine using the startup.bat, but not this way. Thanks in advance, Kevin -- To unsubscribe, e-mail: BC mailto:[EMAIL PROTECTED] For additional commands, e-mail: BC mailto:[EMAIL PROTECTED] BC -- BC To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] BC For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: TC 4.1.3 catalina.jar incomplete (built from source)
Hello Remy, Related to this, how do I use the Coyote JK2 connector? Where are the documentation and examples of the jk workers and conf files...especially since, by default, the JK AJP 1.3 connector is commented out in the default server.xml in 4.1.3beta. !-- Define a Coyote/JK2 AJP 1.4 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ -- Are there any pre-made binaries for Windows? I don't have Visual C++ to compile with. Jake Thursday, June 13, 2002, 4:29:42 PM, you wrote: RM otisg wrote: Hello, I just compiled Tomcat 4.1.3 from sources. When I start Tomcat I get: java.lang.ClassNotFoundException:org.apache.catalina.mbeans.ServerLifecy cleListener This class exists in the binary release of Tomcat 4.1.3 in catalina.jar, but not in my catalina.jar that was built from sources. As a matter of fact my catalina.jar does not have any classes in org.apache.catalina.mbeans package. Does anyone know what could have happened and how to build a full/proper catalina.jar? Thanks, Otis RM You have to remove the listener from server.xml, if the build was made RM without JMX. RM Remy RM -- RM To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] RM For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: TC 4.1.3 catalina.jar incomplete (built from source)
Hello Remy, Actually, I think I am using a 1.2.0 version, but it doesn't seem to be able to use the AJP 1.4 protocol. Does the CoyoteConnector support the 1.3 protocol, or the just 1.4? Jake Thursday, June 13, 2002, 4:42:21 PM, you wrote: RM Jacob Kjome wrote: Hello Remy, Related to this, how do I use the Coyote JK2 connector? Where are the documentation and examples of the jk workers and conf files...especially since, by default, the JK AJP 1.3 connector is commented out in the default server.xml in 4.1.3beta. !-- Define a Coyote/JK2 AJP 1.4 Connector on port 8009 -- !-- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ -- Are there any pre-made binaries for Windows? I don't have Visual C++ to compile with. RM ? RM It is enabled by default in my server.xml. RM For the native side, you can use any version of mod_jk, although I would RM recommend upgrading to the mod_jk 1.2.0 as soon as binaries are available. RM Remy RM -- RM To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] RM For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pooling doesn't work for me ... Help !!
The definitive solution has been provided by Leslie Hughes [EMAIL PROTECTED] here: http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 That is for the following configuration: Tomcat 4.0.3 LE JDK 1.4 Build mySQL 4.0.1 alpha mm.mysql 2.0.14 Jakarta-Commons projects DBCP Nightly Build 20020523 (Note: I'd grab the latest 4.1.3 beta stuff rather than the nightly here) collections 2.0 pool 1.0 Install instructions and configuration is provided. Just to note, I've been using this for Oracle8i with classes12.jar in TOMCAT_HOME/common/lib and Tomcat 4.1.3 with the configuration described in the link above and everything works just peachy. In addition, I provided a snippet of code that I use to access the DataSource here: http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2 Really, truly, this works. No need for fancy workarounds like ConnectionPoolDataSource or directly using Oracle's connecion pool. Just note that the configuration provided may differ slightly from the docs. An example is the docs refer to the user parameter. Leslie used username and that works. So, please, do yourselves a favor and ignore the docs for a bit on this one. Copy the configuration line for line that Leslie has provided. Then, of course, change the values to match your setup. I *guarantee* this works and it is the standard way it is supposed to be done. Maybe this DataSource thread can finally be put to rest? Jake At 06:39 AM 6/14/2002 +0100, you wrote: Nikola Milutinovic wrote: Note that I've used the ConnectionPoolDataSource class - not sure if this makes a difference. Well, yes and no. The actual class should be CPDS, but your application shouldn't specifically ask for it, but for DataSource. The container will use CPDS and cast it to DS for your use. Yes, I'm not using that class in my code, I'm just using DataSource. I was referring to the setup in server.xml. Neil -- Neil Milne Hippo IT Consultants Ltd -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
query unique identifier of a webapp from init()?...
I'm looking for a way to set unique system properties for any individual webapp. Maybe an example of what I need will help to explain: For instance, I want to set a [unique_webapp_key].log.home system property. so, I would do: System.setProperty([unique_webapp_key].log.home) I don't want to just set log.home because I'm thinking that some other process might override such a common name and log.home would end up pointing to a path that I didn't expect. I was going to use getServletContext().getServletContextName() and replace any spaces with .. However getServletContextName() was introduced in Servlet 2.3 and I want it to work with Servlet 2.2. Besides, if the display-name element in the web.xml is not specified, all I get back is null. I also need to be able to predict the result of the unique_webapp_key so that I can reference it from config files. Is there something in the servlet spec 2.2+ that can help me...or am I overlooking something more simple? Jake -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: query unique identifier of a webapp from init()?...
Hello Yoav, Yeah, I could simply use another init property, but I was trying to avoid excessive use of init-param's. I'll probably just add an init-param, though because tempdir isn't all that appealing and I can't think of any other way. Thanks, Jake Wednesday, June 12, 2002, 3:18:32 PM, you wrote: SY Howdy, SY How about giving it a key yourself in your web.xml? (As a context-param SY or init-param to some servlet)? That seems simpler. SY Alternatively, consider using javax.servlet.context.tempdir, although SY I'm not sure if that's in the SRV v2.2. SY Yoav Shapira SY Millennium ChemInformatics -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 3:48 PM To: Tomcat Users List Subject: query unique identifier of a webapp from init()?... I'm looking for a way to set unique system properties for any individual webapp. Maybe an example of what I need will help to explain: For instance, I want to set a [unique_webapp_key].log.home system property. so, I would do: System.setProperty([unique_webapp_key].log.home) I don't want to just set log.home because I'm thinking that some other process might override such a common name and log.home would end up pointing to a path that I didn't expect. I was going to use getServletContext().getServletContextName() and replace any spaces with .. However getServletContextName() was introduced in Servlet 2.3 and I want it to work with Servlet 2.2. Besides, if the display-name element in the web.xml is not specified, all I get back is null. I also need to be able to predict the result of the unique_webapp_key so that I can reference it from config files. Is there something in the servlet spec 2.2+ that can help me...or am I overlooking something more simple? Jake -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] SY -- SY To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] SY For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: SOLVED: jdk 1.4 and Oracle drivers
Hello John, Well, I have been using the classes12.jar in TOMCAT_HOME/common/lib. I've used it with both the JNDI javax.sql.DataSource deal provided by the Jakarta-Commons project and another connection pooler. I've never had a single problem. I've used JDK-1.3.x and JDK-1.4 and haven't had to remove any classes from anywhere. If you are having to do this with Tomcat-4.0.3, I suggest an upgrade to the latest 4.0.4 or 4.1.x betas. They are plenty stable and fix some classloading issues. I pretty much skipped from Tomcat-4.0.2-b2 to nightly builds of 4.1 because of so many classloading issues with the final release of 4.0.2 (and 4.0.3 is just 4.0.2 + a security fix). Jake Tuesday, June 11, 2002, 10:36:22 AM, you wrote: JG Once I tapped in to the bootstrap process with my debugger a little earlier JG in the Tomcat startup process, I could see the conditions under which some JG jar files are excluded from the various class loaders. The Oracle JG classes12.jar file contains the javax.sql stuff, which is now included in JG jdk 1.4. Tomcat ignores any jar files that contain classes that were once JG separate from the standard jdk but are now part of it, such as the jdbc JG extensions, jndi stuff, etc. The solution was simply to remove the JG javax.sql stuff from the Oracle clsses12.jar file. JG john JG -Original Message- JG From: JG [EMAIL PROTECTED] JG [mailto:[EMAIL PROTECTED]. JG org]On Behalf Of John Gregg JG Sent: Thursday, June 06, 2002 4:53 PM JG To: [EMAIL PROTECTED] JG Subject: jdk 1.4 and Oracle drivers JG Hi all. JG Upon completing my most recent project I switched from jdk 1.3.1 to 1.4. JG However now I can't start Tomcat (4.0.1) because it can't find the Oracle JG jdbc driver class. When I first started using Oracle with Tomcat, I renamed JG the classes12.zip to classes12.jar. Now no matter where I put JG classes12.jar, I get the same error. I've tried lib, common/lib, JG server/lib, and webapps/project/web-inf/lib. FWIW, I have a servlet that JG runs at startup and tries to initialize a db connection pool. This used to JG work just fine and in fact still does with postgresql.jar. I even tried JG unzipping classes12.zip and actually jarring it up. No luck. I've traced JG the problem in a debugger far enough to know that the StandardClassLoader JG that should have classes12.jar in its scope doesn't. In fact, of all the JG stuff under common (classes and lib), it's missing classes12.jar and JG jdbc2_0-stdext.jar. Everything else is there. I see those 2 jars overlap JG somewhat, so I tried removing the latter to no avail. I don't have any JG other Tomcat installations and there aren't any jar files in multiple JG locations. I feel like I know everything about this problem but the answer. JG thanks JG john JG -- JG To unsubscribe, e-mail: JG mailto:[EMAIL PROTECTED] JG For additional commands, e-mail: JG mailto:[EMAIL PROTECTED] JG -- JG To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] JG For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Roles in JNDIRealms
Hello Ryan, Check this out: http://www.peacetech.com/java/files/apache/tomcat/ I haven't used it (nor have I used JNDIRealm at all so far), but I grab stuff that looks like useful info off the list and put it in my Vault ( http://www.personalmicrocosms.com/ ) from time to time. Hopefully it is useful for you. Jake Monday, June 10, 2002, 3:18:15 PM, you wrote: R Jonathan, R This is sort of off subject, but does your Active R Directory setup work for Authentication?? It seems to R me that it wouldn't since there is no userPassword R attribute in AD, but I am hoping I'm wrong. R Thanks, R Ryan R --- Jonathan Eric Miller [EMAIL PROTECTED] R wrote: If you are using Tomcat 4.1.3, there are two modes that you can use for checking roles. If you set roleSearch, it will look for search for group objects that contain a list of users for each group. If you set userRoleName, it will get the group information out of the user's entry instead. i.e. you don't need separate group objects. If you are using Active Directory, I found that you can use a setup similar to the following. This goes in server.xml, Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=myadminuser@mydomain connectionPassword=myadminpassword connectionURL=ldap://mydomaincontroller; userBase=cn=Users, dc=mydomain userRoleName=memberOf userSearch=(userPrincipalName={0}@mydomain)/ Group membership is stored in an attribute named memberOf in Active Directory. myadminuser doesn't really have to be an admin user in AD. It just has to have read permission to the memberOf attribute which is visible to normal user accounts by default. This goes in web.xml, security-constraint web-resource-collection web-resource-nameTomcat/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint R role-nameCN=Tomcat,CN=Users,DC=mydomain/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameTomcat/realm-name /login-config In the above example, I created a group in the Users container named Tomcat. If you want to see how things are organized in Active Directory, you can use LDIFDE to dump the directory into an LDIF file. That's how I figured it out. Jon - Original Message - From: Cristina Perez Sanchez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:10 AM Subject: Roles in JNDIRealms Hi, could anyone tell me what objectclass must be group entries that represent roles associated to users in JNDIRealms?? I use groupOfUniqueNames as objectclass but I would like to know if the objectclass group is more proper or if the objectclass isn´t relevant. Thanks for advance, Cristina __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] R __ R Do You Yahoo!? R Yahoo! - Official partner of 2002 FIFA World Cup R http://fifaworldcup.yahoo.com R -- R To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] R For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: sessions with IE6 - browsers opened from within a single browser
Browsers opened from an opened browser window using something like ctrl+n or window.open() will open within the same memory space. Browser opened by clicking on the icon are opened up in a new memory space. However, I have also seen some weirdness with session sharing in, supposedly, separate memory space, so your mileage may vary. In any case, you should be ok if your instances of tomcat are in totally separate domains since the cookies should not be shared across domains. If this is not the case, then you are definitely going to have problems. Jake At 07:09 PM 6/10/2002 -0700, you wrote: Hi All, I noticed a weird behaviour with IE6 and sessions. I am working on a demo, which is supposed to be started from a page by a button click. This causes three new browsers to open, each one connecting to a different tomcat 4.0.1 instance and a session-enabled webapp inside. It seems that there are some interdependencies, and I was able to get only one session to work at a time. However, if I open three browsers from the Start menu and point them to the three webapps, sessions work fine. Anyone knows more about this? thx Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Classloader question between tomcat 3.3 and 4.0.3
Do you use Class.forName(MyClass) to load classes anywhere? If so, your libraries in WEB-INF/lib or WEB-INF/classes that attempt to load the caching library in TOMCAT_HOME/lb (called TOMCAT_HOME/shared/lib in 4.1.x) or TOMCAT_HOME/common/lib won't be able to find it because that package was loaded in a different classloader. Replace: Class.forName(MyClass) With: Thread.currentThread().getContextClassLoader().loadClass(MyClass) That will find classes and resources across multiple classloaders like those that Tomcat provides. Note that there could be one other issue. There are some classloading problems that have been fixed in the latest 4.0.4 beta and the 4.1.3 beta. I *highly* suggest you drop 4.0.3 like a bad habit and move to a bug fixed release. You will save yourself a *ton* of grief by doing so. I wouldn't worry too much that they are marked as beta. As far as I've been able to tell, 4.1.3 is quite robust and same with the latest beta of 4.0.4. Jake At 10:13 PM 6/10/2002 -0600, you wrote: I am deploying several web applications which access data through the proxy/facade pattern into EJB's. Some of this data is shared across applications. I have 1 jar file that is shared, and handles some in memory caching of data, etc. In tomcat 3.3, I have this jar in the lib/apps directory, and I don't have to bundle it in any of the WEB-INF/lib directories. For some reason, I always get ClassNotFound Exceptions doing the same thing in 4.0.3. Tomcat 4.0.3 wants me to have the jar in every WEB-INF/lib directory. I have tried dropping it in common/lib, lib, server/lib, everything. Is there something I am not quite understanding here, or does tomcat 4.x.x load classes differently? I really wanted to use 4.0.x because my AppResources now is combined and in the classpath because my 3.3 doesn't find anything in the WEB-INF/classes directories of my web-apps Thanks Nic Holbrook -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problem..plz help me out
2 things I see wrong with your scenario. 1. When you refer to a servlet, you don't append .class to the end of the servlet name. For instance, you wrote: http://localhost:80/examples/servlet/abc.class which should be: http://localhost:80/examples/servlet/abc 2. You are going through port 80 which is where a normal webserver would be listening. Tomcat listens on port 8080 by default. Unless you are fronting Tomcat with another web server, such as Apache, and using a web connector (and have the configuration for the web connector correct for each context you are accessing) you will not be able to ask Tomcat to serve up .jsp's or servlets. Try your connection like this: http://localhost:8080/examples/servlet/abc That will go directly to Tomcat rather than pass through a web server with a connector. If this works, then your issue is narrowed down to configuring your web connector properly. If it doesn't work, then we can look at other issues such as installing Tomcat in a path with spaces in the directory names. Note: I'm assuming that a class, which is a servlet, exists in the default package (eg... WEB-INF/classes) and is named abc.class for the above link to work. Jake At 12:22 PM 6/8/2002 -0700, you wrote: Hi friends, this is my 4th mail regarding my single complain.. I have install the tomcat 4.0.3 and its doing fine as far .html files are concern but no .class and .jsp files are running on it I have asked 9-10 times abt same question again and again and I got nothing from u guys there Plz help me I really stuck .. With this mail Im sending my server.xml file and web.xml file which is in my virtualhost/WEB-INF/ I know it is very tough for u to go in these files and see for errors but plz..im in need badly and afater spending so much time here I some time feel like crying and Im in such a place and in such a part of India..where I cant get ant local computer guy with whom I can discuss ..plz do me a little favour Here are my problems 1) no .class and .jsp working only html is working 2) I have done all changes which were to made in server.xml )I have send the file also plz check it and tell me any mistake if u find) 3) Im getting 404 error ..no servlet found 4) And Im able to excess the .class file vis http://localhost:80/examples/servlet/abc.class But not by making my own virtual host aand not even the default root directory what i have is my own context named sachar and when i go .http://puneet:80/sachar/servlet/HelloworldServlet error -- 404 See friends ..if u can help me Ill be very grateful to u Puneet __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameMyExample/servlet-name servlet-classHelloWorldExample/servlet-class run-as descriptionSecurity role for anonymous access/description role-nametomcat/role-name /run-as /servlet servlet-mapping servlet-nameMyExample/servlet-name url-pattern/sachar/servlet/snoop/url-pattern url-pattern/servlet/*/url-pattern /servlet-mapping /web-app !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install
RE: Servlet / Tomcat question
Sorry, I was tired when I wrote this and my answer makes no sense. Obviously, the context is lt2001 and the syntax provided by Shapira is propper. The only other reason why this might not be working is that the path in which Tomcat is installed contains spaces. If so, an you are on a Windows system, do something like the following: CATALINA_HOME=C:\Program Files\Apache Group\Jakarta\Tomcat-4.0.3 change the above to: CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\Tomcat-4.0.3 Other than that problem, I'm really not sure what is going on. Jake At 12:38 AM 6/7/2002 -0500, you wrote: the /servlet/ mapping is only available off the root of the context. It should work if you go to: http://localhost:8080/servlet/ltshoppingcart.Login Jake At 11:02 PM 6/6/2002 -0500, you wrote: Thanks for the help, but I'm still having problems. The package of the servlet I'm trying to access is ltshoppingcart and the servlet name is Login. So I have tried accessing the servlet by going to http://localhost:8080/lt2001/servlet/ltshoppingcart.Login and all I get is a message from Tomcat saying that the requested resource is unavailable. Any ideas? Thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 8:39 AM To: Tomcat Users List Subject: RE: Servlet / Tomcat question Howdy, If your web-application is called MyApp, and your servlet class is com.mycompany.myclass, you'd access it as http://myserver.mydomain:myport/MyApp/servlet/com.mycompany.myclass If you deployed to the ROOT web app, so that your context is the root context, you would remove the /MyApp/ part from the above URL. If you have a web.xml file (a Deployment Descriptor is a good thing to have -- it'll become a good friend of yours ;)), you can alias the servlet like servlet servlet-nameMyServlet/servlet-name servlet-classcom.mycompany.myclass/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping And then you could access it as http://myserver.mydomain:myport/MyApp/MyServlet See the Servlet Spec (v2.3 if you're using tomcat v4.x) for what goes in the Deployment Descriptor etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Seidl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:19 PM To: [EMAIL PROTECTED] Subject: Servlet / Tomcat question I'm stumped. I have a web application (term used loosely) which was created using Borland's JBuilder. The servlets in this application worked fine when I ran them in JBuilder and accessed them locally. I now want to place them on an Apache Tomcat web server. I can compile and deploy the code using ant and Tomcats manager (which also show that the web-app is running). The problem I have is that I don't know how to correctly call these servlets from the html. With JBuilder we called them with the following type of command: http://localhost:8080/servlet/ltshoppingcart.cart. Can someone give me some idea on how to call these servlets with tomcat? I do not have a web.xml file within my WEB-INF. I do not quite understand the role of this file, and how to configure it. Any help with either of these topics is welcome :-). Thanks Scot -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet / Tomcat question
the /servlet/ mapping is only available off the root of the context. It should work if you go to: http://localhost:8080/servlet/ltshoppingcart.Login Jake At 11:02 PM 6/6/2002 -0500, you wrote: Thanks for the help, but I'm still having problems. The package of the servlet I'm trying to access is ltshoppingcart and the servlet name is Login. So I have tried accessing the servlet by going to http://localhost:8080/lt2001/servlet/ltshoppingcart.Login and all I get is a message from Tomcat saying that the requested resource is unavailable. Any ideas? Thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 8:39 AM To: Tomcat Users List Subject: RE: Servlet / Tomcat question Howdy, If your web-application is called MyApp, and your servlet class is com.mycompany.myclass, you'd access it as http://myserver.mydomain:myport/MyApp/servlet/com.mycompany.myclass If you deployed to the ROOT web app, so that your context is the root context, you would remove the /MyApp/ part from the above URL. If you have a web.xml file (a Deployment Descriptor is a good thing to have -- it'll become a good friend of yours ;)), you can alias the servlet like servlet servlet-nameMyServlet/servlet-name servlet-classcom.mycompany.myclass/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping And then you could access it as http://myserver.mydomain:myport/MyApp/MyServlet See the Servlet Spec (v2.3 if you're using tomcat v4.x) for what goes in the Deployment Descriptor etc. Yoav Shapira Millennium ChemInformatics -Original Message- From: Scott Seidl [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:19 PM To: [EMAIL PROTECTED] Subject: Servlet / Tomcat question I'm stumped. I have a web application (term used loosely) which was created using Borland's JBuilder. The servlets in this application worked fine when I ran them in JBuilder and accessed them locally. I now want to place them on an Apache Tomcat web server. I can compile and deploy the code using ant and Tomcats manager (which also show that the web-app is running). The problem I have is that I don't know how to correctly call these servlets from the html. With JBuilder we called them with the following type of command: http://localhost:8080/servlet/ltshoppingcart.cart. Can someone give me some idea on how to call these servlets with tomcat? I do not have a web.xml file within my WEB-INF. I do not quite understand the role of this file, and how to configure it. Any help with either of these topics is welcome :-). Thanks Scot -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Manager App Question
At 02:00 AM 6/5/2002 +0200, you wrote: Hello Adam, AP I just began playing with the manager app and am confused on how it deploys a new web application. AP Here is the lowdown. AP /opt/jakarta-tomcat-4.0.3/webapps/trips-dev in order to set up a development environment. AP This worked, the web app deployed and I can now browse it perfectly. What I am confused on it AP that I can stop and start tomcat /opt/jakarta-tomcat-4.0.3/bin/shutdown.sh startup.sh and it AP still sees the trips-dev app. Tomcat will always deploy all applications in the directory webapps on startup. It's a feature you do not have to configure that somewhere. I have found this *not* to be true in the case that you specify the context in the Server.xml. If I don't specify it in server.xml, it expands the .war file on startup. With it specified, the .war file isn't expanded and if I don't expand it manually before Tomcat startup, the context will not be found. Any solution to that problem? Jake -- Regards, Thomasmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: classpath problem
All Tomcat is doing is expanding the directory. If it was Web-inf there, then that is what it will be expanded as. One thing to do is to make sure that Windows explorer isn't just displaying it that way even though it is properly upper-cased. You might want to look at it though the command line and see if the case is still Web-inf. If you configure Explorer to show classic folders, you will be less likely to run into this problem.. Jake At 02:14 AM 6/3/2002 -0700, you wrote: well that is what's wrong you need to go to the dos prompt and rename it to something else, then rename it WEB-INF with that case. f On 6/3/02 2:06 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When i put WEB-INF instead Web-inf windows reformat the name into Web-inf. Please note that the name Web-inf was created by Tomcat when i deploy the WAR. Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] Phillip Morelock subscriptions@phillipmorTo: Tomcat Users List [EMAIL PROTECTED] elock.com cc: Subject: Re: classpath problem 06/03/02 10:23 AM Please respond to Tomcat Users List WEB-INF is case sensitive. can't be Web-inf does this make a difference? fillup On 6/3/02 1:16 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hello, Tomcat 4.0 can't find my classes and my associated resources that are in the Web-inf/lib directory of my Web application. When i set the classpath dynnamically in the catalina.bat for example, Tomcat can'find the HttpServlet.class I can't understand why i have this kind of problem because i believed that Tomcat load automatically the jar file that is put in the Web-inf directory of a web application !!! Patrick PIERRA Linedata Services Luxembourg 00 352 29 56 65 282 [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Class org/w3c/dom/NodeList violates loader constraints
Hello Patrick, Do you have DOM packages in WEB-INF/lib or WEB-INF/classes? If so, this violates the Sun classloading spec and, as of Tomcat 4.0.2, this is enforcedalthough not very cleanly until the latest betas of Tomcat 4.0.4 and 4.1. The solution is to move your DOM classes into a parent classloader such as TOMCAT_HOME/lib, TOMCAT_HOME/common/lib or use the ones that come from the JDK (if you use 1.4...either the default ones or ones you override in JAVA_HOME/jre/lib/endorsed...or TOMCAT_HOME/common/endorsed if you use Tomcat 4.1). Jake Monday, June 03, 2002, 9:24:13 AM, you wrote: PPlc hello, PPlc i have a class which try to load an xml file on the startup of tomcat 4.0. PPlc i receive this error : PPlc if someone could help me to resolve it ? PPlc java.lang.LinkageError: Class org/w3c/dom/NodeList violates loader PPlc constraints PPlc at PPlc lds.odata.web.dataconnectivity.JDBC_OdataConnection.initConnectionParameters(JDBC_OdataConnection.java:126) PPlc at PPlc lds.odata.web.dataconnectivity.JDBC_OdataConnection.proceedConnection(JDBC_OdataConnection.java:153) PPlc at PPlc lds.odata.web.servlets.OdataJDBCinitializer.init(OdataJDBCinitializer.java:50) PPlc at javax.servlet.GenericServlet.init(GenericServlet.java:258) PPlc at org.apache.catalina.core.StandardWrapper.load(Unknown Source) PPlc at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown PPlc Source) PPlc at org.apache.catalina.core.StandardContext.start(Unknown Source) PPlc at org.apache.catalina.core.ContainerBase.addChild(Unknown Source) PPlc at org.apache.catalina.core.StandardHost.addChild(Unknown Source) PPlc at org.apache.catalina.core.StandardHost.install(Unknown Source) PPlc at org.apache.catalina.startup.HostConfig.deployApps(Unknown PPlc Source) PPlc at org.apache.catalina.startup.HostConfig.start(Unknown Source) PPlc at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown PPlc Source) PPlc at PPlc org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown PPlc Source) PPlc at org.apache.catalina.core.ContainerBase.start(Unknown Source) PPlc at org.apache.catalina.core.ContainerBase.start(Unknown Source) PPlc at org.apache.catalina.core.StandardEngine.start(Unknown Source) PPlc at org.apache.catalina.core.StandardService.start(Unknown Source) PPlc at org.apache.catalina.core.StandardServer.start(Unknown Source) PPlc at org.apache.catalina.startup.Catalina.start(Unknown Source) PPlc at org.apache.catalina.startup.Catalina.execute(Unknown Source) PPlc at org.apache.catalina.startup.Catalina.process(Unknown Source) PPlc at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) PPlc at PPlc sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) PPlc at PPlc sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) PPlc at java.lang.reflect.Method.invoke(Method.java:324) PPlc at org.apache.catalina.startup.Bootstrap.main(Unknown Source) PPlc Patrick PIERRA PPlc Linedata Services Luxembourg PPlc 00 352 29 56 65 282 PPlc [EMAIL PROTECTED] PPlc -- PPlc To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] PPlc For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MS Driver (again)
Hello Sean, See this email. It has links to a few resources that tell about a proven way to use DBCP. http://marc.theaimsgroup.com/?l=tomcat-userm=102242646003357w=2 Take a look at your parameters. For instance, user should be username. Just check and double check that all your configuration is proper and matches up with an example that has been proven to work (link above). Jake Monday, June 03, 2002, 9:25:33 AM, you wrote: SL Has anyone gotten either the Beta 2 or the finalized driver to work via DataSource? I am getting SL nowhere fast with this - does it even work? I *can* connect w/o using DataSource, but I'm trying SL to get database pooling working with Tomcat connecting to a MS SQL Server 2000 database, and SL this seems like it should be a viable option. Thanks in advance. SL Here is the relevant code snippet: SL Context ctx = new InitialContext(); SL Context envCtx = (Context)ctx.lookup(java:comp/env); SL System.out.println(Got first context.); SL NamingEnumeration enum =ctx.listBindings(java:comp/env/jdbc); SLwhile( enum.hasMore() ) { SL System.out.println(Binding: + ((Binding)enum.next()).toString() ); SL} SL DataSource ds = (DataSource)envCtx.lookup(jdbc/nutrosDB); SL System.out.println(Got the second context.); SL if (ds != null) SL { SL System.out.println(Getting the connection from the context.); SL connection = ds.getConnection(); SL } SL == SL DataSource is null. Here is the output: SL Got first context. SL Binding: nutrosDB: org.apache.naming.ResourceRef:Reference Class Name: javax.sql.DataSource SL Type: scope SL Content: Shareable SL Type: auth SL Content: Container SL Type: user SL Content: SL Type: factory SL Content: com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory SL Type: password SL Content: SL Type: url SL Content: jdbc:microsoft:sqlserver://192.168.9.253;user=;Password=;DatabaseName=NutrosDev SL Type: driverClassName SL Content: com.microsoft.jdbc.sqlserver.SQLServerDriver SL Type: database SL Content: NutrosDev SL Got the second context. SL = SL Here is the server.xml snippet: SL Resource name=jdbc/nutrosDB auth=Container SL type=javax.sql.DataSource/ SL ResourceParams name=jdbc/nutrosDB SL parameter SL namedatabase/namevalueNutrosDev/value SL /parameter SL parameter SL namefactory/namevaluecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value SL /parameter SL parameter SL namedriverClassName/namevaluecom.microsoft.jdbc.sqlserver.SQLServerDriver/value SL /parameter SL parameter SL nameurl/namevaluejdbc:microsoft:sqlserver://192.168.9.253;user=;Password=;DatabaseName=N SL utrosDev/value SL /parameter SL parameter SL nameuser/namevalue/value SL /parameter SL parameter SL namepassword/namevalue/value SL /parameter SL /ResourceParams SL And the web.xml snippet: SL resource-env-ref SL descriptiontest jdbc/nutrosDB/description SL resource-env-ref-namejdbc/nutrosDB/resource-env-ref-name SL resource-env-ref-typejavax.sql.DataSource/resource-env-ref-type SL /resource-env-ref SL -- SL To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] SL For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: can't get context to see global classes/jars
Is finep trying to load the Oracle driver using Class.forName(String aClassName)? You should be using Thread.currentThread().getContextClassLoader().loadClass(String aClassName); That will find your Oracle Driver across multiple classloaders. It is the Java2 way of loading classes and necessary in an environment like Tomcat with its multiple classloaders. Jake At 09:22 AM 5/31/2002 -0300, you wrote: Why can't I get this right? Is Tomcat crazy? I have a set of classes (the package is called finep) and the oracle drivers (a file named classes12.jar). Well... if I place finep and the oracle drivers in the webapp/WEB-INF dir (finep in /classes, classes12.jar in /lib) everything works fine... if I try and place finep in $CATALINA_HOME/classes and $CATALINA_HOME/lib nothing works.. I tried unpacking classes12.jar in /classes, still doesn't work... I tried to pack everything into jars and place it in /lib... still doesn't work... what is the matter with this thing? Is it impossible to get this working? I have several webapps that needs these (finep and oracle drivers). Thanks .:| Christian J. Dechery .:| FINEP - Depto. de Sistemas .:| [EMAIL PROTECTED] .:| (21) 2555-0332
Re: global resources
Hello Christian, By chance, are the libraries that you put in TOMCAT_HOME/lib refer to libraries that you put in your webapp's WEB-INF/lib? If so, this just isn't going to work. The WEB-INF/lib libraries can see libraries in TOMCAT_HOME/lib, but not the other way around. For instance, the developers at Log4j say that you should have log4j.jar in each separate webapp's WEB-INF/lib directory. However, this imposes itself upon any libraries that are using Log4j. They will need to also be inside WEB-INF/lib as well where, if Log4j was designed a non-static way where it could exist in TOMCAT_HOME/lib and serve all webapps with Loggers without running into each other, then you could have the libraries that reference log4j safely in TOMCAT_HOME/lib. If you didn't understand that, if all else fails, just put everything in WEB-INF/lib except for XML and DOM libraries, which are forbidden in the child classloader, and stuff like DBCP which both Tomcat and your webapp need access to (TOMCAT_HOME/common/lib). Jake Wednesday, May 29, 2002, 12:59:01 PM, you wrote: CJD I can't seem to get my classes as global. CJD I want them to be acessed by all applications... so I placed it under $CATALINA_HOME/classes and $CATALINA_HOME/lib right? CJD Well... when I do that, either two things happen: it doesn't find the classes and nothing works, or it gives me a crazy error regarding ServletException and some cast error. CJD any clues? CJD .:| Christian J. Dechery CJD .:| FINEP - Depto. de Sistemas CJD .:| [EMAIL PROTECTED] CJD .:| (21) 2555-0332 -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection Pooling Solution
See... http://marc.theaimsgroup.com/?l=tomcat-userm=102230335008606w=2 and http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2 which both reference... http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 it provides a pretty definitive and working solution for using DBCP Jake At 11:38 AM 5/26/2002 +0100, you wrote: You probably only downloaded the source, try a nightly build http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp/ And could you keep your mails to the list instead of direct? That way (a) someone else might answer first and (b) the answer will end up in the mail archives. Thanks Les -Original Message- From: Rick Fincher [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 18:37 To: [EMAIL PROTECTED] Subject: Re: Connection Pooling Solution Thanks a million Les, This is very helpful. Quick question: I didn't see a jar in th DBCP nightly build after I downloaded it, how do you build this thing? Thanks again, Rick - Original Message - Hi all, Having felt the pain in getting connection pooling to work with TC 4.0.3 I've knocked up a simple howto. This is for TC 4.0.3 JDK 1.4, mySQL 4.0 Alpha so YMMV. Enjoy, Les I Downloaded: Tomcat 4.0.3 LE JDK 1.4 Build mySQL4.0.1 alpha mm.mysql 2.0.14 Jakarta-Commons projects DBCP Nightly Build 20020523 collections 2.0 pool1.0 Install mm.mysql, DBCP, collections and pool jars into CATALINA_HOME/common/lib In mySQL, I created a simple DB call javatest with a single table (testdata) and a new user (javauser) with the password javadude. I created a new Context for my test web app, here's the full server.xml entry: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameternamemaxActive/namevalue100/value/parameter parameternamemaxIdle/namevalue3/value/parameter parameternamemaxWait/namevalue100/value/parameter parameternameusername/namevaluejavauser/value/parameter parameternamepassword/namevaluejavadude/value/parameter parameter namedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/namevaluejdbc:mysql://localhost:3306/javatest/value /parameter /ResourceParams /Context And of course, you'll need this in your web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionmySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app And a snippet of Java to use this:- try{ Context ctx = new InitialContext(); if(ctx == null ) throw new Exception(Boom - No Context); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); if (ds != null) { Connection conn = ds.getConnection(); if(conn != null) { foo = Got Connection +conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery(select id, foo, bar from testdata); if(rst.next()) { foo=rst.getString(2); bar=rst.getInt(3); } conn.close(); } } }catch(Exception e) { e.printStackTrace(); } That's all folks.Hope this is of use to you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: templating system?
Hello Vincent, Check out Barracuda at http://barracuda.enhydra.org/ Barracuda uses XMLC ( http://xmlc.enhydra.org/ ) to do DOM manipulation to get the data where you need it in your document. Actually, it extends XMLC and provides another level of abstraction. You can use a templating system called BTemplate where you can add directives to your html tags. Unlike most templating system, after you are done doing your templating, you still have 100% standard HTML that will validate with any html validator such as http://validator.w3.org/ . You can even map ID's in your template to Directives stated in a separate file. Barracuda also provides a robust polymorphic Event model, a Component Model (so you don't have to write DOM code yourself), and is set very similar to Java Swing in the way its MVC works. It also supplies an easy way to do Localization and lots of other niceties. There are very few database specific utilities when using Barracuda. It is meant as a Presentation Framework and doesn't try to horn in on every area of application development like some other frameworks which may use their own database integration or use a non-standard templating system. All you need to do is get the data, put it in the model, and let Barracuda go to work placing your data into your template for output. See the documentation here: http://barracuda.enhydra.org/cvs_source/Barracuda/index_details.html Note that the current release is somewhat old, but a new release is imminent (within the next week or so) and it will include tons of bugfixes and enhancements to the current release. If you want to try out Barracuda right away, I suggest getting the latest cvs source. Unlike some other projects, Barracuda is a cinch to build. Just do ant clean jars (this assumes you have ant 1.4.1 or better installed with $ANT_HOME/bin in your system PATH). Let me know if you have any questions. I suggest that you sign up for the mailing list ( [EMAIL PROTECTED] ) as there is a rich developer community ready to help out. Jake Friday, May 24, 2002, 9:13:08 AM, you wrote: VS Hello All, VS I was wondering if there were any projects out there that provided any kind of database-html templating. I need the ability quickly create VS web pages that allow users to create/retrieve/update/delete rows VS from tables that I will be creating. I am doing this with tomcat VS jsp/javabeans model. I guess I could just write my own but I wanted VS to ask before I reinvent the wheel. VS Thanks -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help! Need connection pooling for tc4.
Hello Mariano, I use BitMechanic's JDBCPool http://www.bitmechanic.com/projects/jdbcpool/ It works great and is very fast. I have also been trying to use Tomcat standard pooling mechanism, but haven't been very successful. I'll be sticking with BitMechanic for now. Jake Friday, May 24, 2002, 10:50:01 AM, you wrote: MKmd Hi, MKmd we are about to deploy an application to production and just learned that MKmd tomcat 4.0.3 doesn't seem to pool connections. Is there any connection MKmd pool (datasource style) available? MKmd As it is an intrantet application we are about to deploy and we already know MKmd that we will have 700 concurrent users this topic is quite pressing for MKmd us. Any insights will be appreciated. MKmd Btw. I tried tc4.1, but besides printing a message to stdout I get no sign MKmd that it is pooling connections. MKmd Cheers, MKmd Mariano MKmd -- MKmd To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] MKmd For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: tomcat 4.0.3 and Null datasource
I think you will fine a fine solution here: http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 This solved the issue for me...although I am using the latest nightly builds of Barracuda, which use DBCP by default, but you can also use DBCP with Tomcat 4.0.3 as long as you add the appropriate jars. Jake At 05:56 PM 5/24/2002 -0400, you wrote: Hi, I am having trouble obtain datasource to get a connection, I've looked over the mailing archives and followed the directions, but still can't get it to work. I'm using I'm using Tomcat 4.0.3 and Sybase jconn2.jar I have a method that has this Context ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup(java:comp/env/); DataSource ds = (DataSource) envCtx.lookup(jdbc/setsDataSource); however, if I check for if (ds == null), that is true, so the get Connection that follows doesn't work. I have tried different approaches, I've put jconn2.jar in my Web-inf/lib, I have tried putting jconn2.jar in %tomcat%/common/lib, still doesn't work. My settings are as follows server.xml Resource name=jdbc/setsDatasource auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/setsDatasource parameternamedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDriver/value /parameter parameternameurl/name valuejdbc:sybase:Tds:servername:4946/database/value /parameter parameternameuser/namevalueusername/value/parameter parameternamepassword/namevaluepassword/value/parameter /ResourceParams web.xml resource-ref descriptionSets Database/description res-ref-namejdbc/setsDataSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Any ideas would be appreciated, thanks. Dean -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DBCP - BasicDatasource? (yep, BasicDatasource and it works!)
I'm answering my own question on this. I found my solution here: http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2 The one thing I added was a slightly different Java code snippet since I return a Connection rather than grab the DataSource and use the connection right there: import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; . . .. public static Connection getConnection() throws SQLException { DataSource ds = null; try { Context ctx = new InitialContext(); if (ctx == null) throw new SQLException(No Context available for DataSource...can't get connection); ds = (DataSource)ctx.lookup(java:comp/env/jdbc/utasklistDB); if (ds == null) throw new SQLException(No DataSource available for Connection); System.out.println(The Datasource is: + ds); } catch (NamingException ne) { throw new SQLException(JNDI Lookup Failed: + ne.getMessage()); } return ds.getConnection(); } There you go. The instructions provided by Les Hughes at the link above and the code I added here worked perfectly for me. Thanks to Les for providing this info! Jake At 06:13 PM 5/23/2002 -0500, you wrote: I've got a question about setting up a connection pool using DBCP. Back when I was testing the nightly build from 20020404, I could swear I was getting back a PooledDataSource. Now with todays build (20020523), I am getting back a BasicDatasource. The code that I have looks like: DataSource ds = null; try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); if (envCtx!=null) { ds = (DataSource)envCtx.lookup(jdbc/utasklistDB); System.out.println(The Datasource is: + ds); } } catch (NamingException ne) { System.out.println(JNDI Lookup Failed: + ne.getMessage()); } return ds.getConnection(); What prints out on that first println is: The Datasource is: org.apache.commons.dbcp.BasicDataSource@0f Then, when I attempt to return the connection, I end up getting the following error: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown Source) at org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown Source) at com.syntegra.unilever.tasklist.data.ConnectionManager.getConnection(ConnectionManager.java:73) at com.syntegra.unilever.tasklist.data.Manager.openConn(Manager.java:22) at com.syntegra.unilever.tasklist.data.UserManager.getUserByUsername(UserManager.java:201) at com.syntegra.unilever.tasklist.services.ValidationServices.validateUser(ValidationServices.java:91) at com.syntegra.unilever.tasklist.services.ValidationServices.validateUser(ValidationServices.java:69) at com.syntegra.unilever.tasklist.MasterEventGateway$LocalRequestHandler.handleControlEvent(MasterEventGateway.java:80) at org.enhydra.barracuda.core.event.DefaultBaseEventListener.handleEvent(DefaultBaseEventListener.java:64) at org.enhydra.barracuda.core.event.DefaultEventDispatcher.notifyListeners(DefaultEventDispatcher.java:381) at org.enhydra.barracuda.core.event.DefaultEventDispatcher.dispatch(DefaultEventDispatcher.java:183) at org.enhydra.barracuda.core.event.DefaultEventDispatcher.dispatchEvent(DefaultEventDispatcher.java:103) at org.enhydra.barracuda.core.event.DefaultEventBroker.dispatchEvent(DefaultEventBroker.java:488) at org.enhydra.barracuda.core.event.ApplicationGateway.handleDefaultExt(ApplicationGateway.java:413) at org.enhydra.barracuda.core.event.ApplicationGateway.handleDefault(ApplicationGateway.java:239) at org.enhydra.barracuda.core.event.ApplicationGateway.doGet(ApplicationGateway.java:632) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at
DBCP - BasicDatasource?
I've got a question about setting up a connection pool using DBCP. Back when I was testing the nightly build from 20020404, I could swear I was getting back a PooledDataSource. Now with todays build (20020523), I am getting back a BasicDatasource. The code that I have looks like: DataSource ds = null; try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); if (envCtx!=null) { ds = (DataSource)envCtx.lookup(jdbc/utasklistDB); System.out.println(The Datasource is: + ds); } } catch (NamingException ne) { System.out.println(JNDI Lookup Failed: + ne.getMessage()); } return ds.getConnection(); What prints out on that first println is: The Datasource is: org.apache.commons.dbcp.BasicDataSource@0f Then, when I attempt to return the connection, I end up getting the following error: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.commons.dbcp.BasicDataSource.createDataSource(Unknown Source) at org.apache.commons.dbcp.BasicDataSource.getConnection(Unknown Source) at com.syntegra.unilever.tasklist.data.ConnectionManager.getConnection(ConnectionManager.java:73) at com.syntegra.unilever.tasklist.data.Manager.openConn(Manager.java:22) at com.syntegra.unilever.tasklist.data.UserManager.getUserByUsername(UserManager.java:201) at com.syntegra.unilever.tasklist.services.ValidationServices.validateUser(ValidationServices.java:91) at com.syntegra.unilever.tasklist.services.ValidationServices.validateUser(ValidationServices.java:69) at com.syntegra.unilever.tasklist.MasterEventGateway$LocalRequestHandler.handleControlEvent(MasterEventGateway.java:80) at org.enhydra.barracuda.core.event.DefaultBaseEventListener.handleEvent(DefaultBaseEventListener.java:64) at org.enhydra.barracuda.core.event.DefaultEventDispatcher.notifyListeners(DefaultEventDispatcher.java:381) at org.enhydra.barracuda.core.event.DefaultEventDispatcher.dispatch(DefaultEventDispatcher.java:183) at org.enhydra.barracuda.core.event.DefaultEventDispatcher.dispatchEvent(DefaultEventDispatcher.java:103) at org.enhydra.barracuda.core.event.DefaultEventBroker.dispatchEvent(DefaultEventBroker.java:488) at org.enhydra.barracuda.core.event.ApplicationGateway.handleDefaultExt(ApplicationGateway.java:413) at org.enhydra.barracuda.core.event.ApplicationGateway.handleDefault(ApplicationGateway.java:239) at org.enhydra.barracuda.core.event.ApplicationGateway.doGet(ApplicationGateway.java:632) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458) at
Re[2]: reloading with ant
Hello John, I wouldn't mind see your working version even if it is copy/pasted. At least we know that it works and can extend from that example. thanks, jake Wednesday, May 22, 2002, 10:07:59 AM, you wrote: -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 15:03 To: [EMAIL PROTECTED] Subject: reloading with ant Hi, i just wanna ask if the following scenario is the best for re-deploying WARs: I am doing my build task with ant and transfer the WAR file of my application into the webapps folder of tomcat. Then i do a GET task with ant in order to re-deploy it, exacltly i would do a MANAGER REMOVE and MANAGER INSTALL with ant. I could delete the existing appfolder before i do install, but it should be the same. Are there any better routines for automatic re-deploy or hot-deploy? Of course in order to do a manager remoce or manager install, i have to edit the web.xml of the manager app in order not to come up with basic http authentication or? I am quite sure that there must be tons of developers which solved this problem cause the ANT-Tomcat workflow seems very common :) JN Marc JN Have you looked at the sample build.xml that comes with the sample webapp JN with Tomcat? I merged that with the catalina-ant tasks (using the Ant JN script snippets in the manager-app howto) to create a generic build file JN that I use for most web-app development. JN Now I can deploy and remove my web-app during a build. I also use a list JN task just so I'm sure my web-app has been deployed! JN I'd recommend you start by looking at these two files and seeing if you can JN extend them to suit your needs. If you're still having problems, let me JN know, and I'll post my build.xml (mine, in that I did the JN copying/pasting...!) JN HTH JN John JN -- JN John Niven JN Please reply through mailing list JN -- JN To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] JN For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What methodologies/systems/practices do you use?
Hello Michael, Check out http://barracuda.enhydra.org/cvs_source/Barracuda/index_details.html I am a developer of Barracuda and can tell you that it is a fantastic way to develop servlets based on Model 2. It is actually inspired by the way Swing apps work. It uses Components to deal with the interface which, underneath everything, use the DOM to manipulate the presentation layer. Currently, XMLC is used to create the DOM presentation. Because of this, you can write pages in 100% HTML with no deviations from the HTML 4.0.1 Strict specification for your presentation layer. This sure beats JSP where Java code and Markup are mixed because it lets your page designers be designers and coders be coders. This presentation layer ends up acting as your storyboard as well since they are pure HTML + css + javascript. For your coders, Barracuda has a robust Event model, Form mapping Framework, and Component model. Barracuda is less concerned with things like database pooling, but there are so many packages out there that provide you with this functionality, why rewrite it? Barracuda is a Presentation Framework and doesn't get in the way of using anything else with it. You could use Struts right along-side if you wanted to. It gives you great flexibility because it provides functionality without locking you into any specific way of doing development. All of this runs in any Servlet 2.2+ compliant servlet engine such as Tomcat-3.3.x or Tomcat-4.x.x. There are lots of details I left out, but there are lots of docs that can fill in the blanks. We will be releasing version 1.0.3 sometime within the next week or so. If you want to play with it in the mean-time, I suggest grabbing the latest CVS source. It is very stable...probably more so than an actual release that we have so far. Check it out! Jake Monday, May 20, 2002, 10:23:09 AM, you wrote: MT Howdy. MT I'm looking for one or more guide documents for MT JSP/Servlet/? development for doing web applications. MT Specifically, I'm hoping to find some best practices MT for doing modern web application development using MT production quality (not bleeding edge) technologies. MT For example, right now I generally follow the Model-2 MT practice (JSPs, JavaBeans, and Servlets), using JDBC MT with some db connection pool objects I found on the MT web. However, I feel like I'm reinventing lots of MT wheels (I especially dislike manual form development.) MT On the other hand, I took a cursory look at Turbine MT (for example), but I found it to be too complex to MT interest me. I have fiddled with Zope, peeked at MT OpenACS, fumbled with ColdFusion, and even (gasp!) MT considered ASP.NET. At this point I don't care what MT language or technology. MT I am willing to dig deep, but I'd like some idea in MT advance so I hopefully don't invest a lot of time into MT something I'll throw away. MT If this helps, here are the things I need. MT o I need robust forms (server, and optionally also MT client side validation of fields) MT o Transactional, pooled database access MT o User/form access security MT o As a bonus, it would be super nifty if I could find MT a system that would allow me to train a less technical MT (non-programmer) to develop and test database-backed MT forms. (This person currently is experienced doing MS MT Access forms.) MT If this is the wrong forum for this kind of MT discussion, my apologies. In my work (mostly MT contract), I usually find myself working solo on a MT project, or being the only person in the company doing MT development, so I don't have any peers to discuss MT these topics with. MT Much thanks, MT Michael Teter MT __ MT Do You Yahoo!? MT LAUNCH - Your Yahoo! Music Experience MT http://launch.yahoo.com MT -- MT To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] MT For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Making progress..Tomcat now started - still getting 500 Status
you need to put $JAVA_HOME/lib/tools.jar in your classpath. Jake At 06:24 PM 5/17/2002 +0530, you wrote: Hi gary .. i think for this problem u need to include the tools.jar file in u'r class path !! try including that if u haven't and then we can see what else can be done if it still doesn't work vishal - Original Message - From: Gary Frick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 17, 2002 12:46 AM Subject: Making progress..Tomcat now started - still getting 500 Status Thanks to everyone for the help in sorting out the port contention problem. Changing the port designation did the trick. Additionally, there was a rogue copy of Tomcat service running which I wasn't aware of. So, now to the next problem (HTTP 500 Error). java.lang.NoClassDefFoundError: sun/tools/javac/Main I believe that my 'properties' files, environment vars, and classpath are correct, but I can't be certain. Can anyone assist with sorting this out? Thanks, Gary -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: User LogIn/LogOut
Hello Joaquín, This is a nice thought, but I can disable it by turning off javascript or using a browser that doesn't even support javascript. Javascript is to be used for functional enhancements. It shouldn't be used as a backstop for error handling or any other function that you need to count on your application to do in order for things to work properly...unless you state up-front that in order to use the application, javascript at some specified version level (generally 1.2) *must* be enabled. Jake Thursday, May 16, 2002, 9:50:55 AM, you wrote: JSJ Hi: JSJ You can detect browser is closing just using onUnload tag in body. Just do JSJ this: JSJ function doLogout() { JSJ document.formLogout.action='logout.jsp'; JSJ document.formLogout.formOption.value='logout'; JSJ document.formLogout.submit(); JSJ } JSJ body onUnload=doLogout(); JSJ ... here comes your html code JSJ Then insert a form JSJ form method=POST name=formLogout JSJ input type=hidden name=formOption JSJ /form JSJ - Original Message - JSJ From: RamNivas [EMAIL PROTECTED] JSJ To: Tomcat Users List [EMAIL PROTECTED]; Paul Balanoiu JSJ [EMAIL PROTECTED] JSJ Sent: Friday, May 17, 2002 1:22 PM JSJ Subject: RE: User LogIn/LogOut Dear Paul Balanoiu Thanks a lot, This is really very use full for me :) Cheers Ram -Original Message- From: Paul Balanoiu [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 4:35 PM To: Tomcat Users List Subject: Re: User LogIn/LogOut HTTP is a request-based protocol. This means that you cannot detect if the user just closes the browser. You can do one of the following: 1. Set the Session expiration time to a custom value (usualy is set to 30 min.) This value is the maximum precision you get for detecting user JSJ logout. Don't set the value too low (if the user does not send any request for JSJ this period of time, i.e. goes to have a cup of coffe, the session will be invalidated and the user will have to login again). 2. (not recommended) Use an applet in the webpages, to keep the session alive (i.e. the applet should send a HTTP request to the server per JSJ minute, and the session timeout could be set to two minutes). This way you'll know that if the session timed out, then the user simply closed the browser). Paul - Original Message - From: RamNivas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 17, 2002 1:34 PM Subject: User LogIn/LogOut Dear All, I am having Tomcat Running on WinNT4.0. i want to track the user loggins and logouts time for inserrting in database.Using jsp how can i track the time user closes the browser or logout . i tried using JSP distroy method . but i'm having some troubles with htat can someone send me a working example of JSP distroy or any good method of tackling this problem regards Ram -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: JSJ mailto:[EMAIL PROTECTED] For additional commands, e-mail: JSJ mailto:[EMAIL PROTECTED] JSJ -- JSJ To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] JSJ For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Form submit question when using frames
Hello Adam, I believe you just set the target of the form: form target=[target frame name here] Jake Friday, May 17, 2002, 3:31:59 PM, you wrote: AP This is an html question, but I figure a lot of you have run into this. I have a 2 frame page AP with a top and bottom frame. The top frame has a form with a drop down box in it. Is there a way AP for the form to post to the the bottom frame without reloading the frameset? Thanks for your help AP in advance. AP Adam AP __ AP Do You Yahoo!? AP LAUNCH - Your Yahoo! Music Experience AP http://launch.yahoo.com AP -- AP To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] AP For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error when running jsp.
Most likely, you have XML or DOM libraries in your webapp. They are not allowed there according to the Sun classloading spec and, beginning with Tomcat 4.0.2, this is enforced by Tomcat. They must be in the parent classloader in $TOMCAT_HOME/lib or $TOMCAT_HOME/common/lib or as part of the JDK (in 1.4) or in the $JAVA_HOME/jre/lib/endorsed directory (also 1.4). Jake At 10:00 AM 5/15/2002 +0200, you wrote: Hi, I'm working on tomcat 4.0.3. I can run simple jsp . But when I run Jsp which use Dom or Sax Api, Tomcat can't print the result, I have always the same error : Exception report Internal Server Error javax.servlet.ServletException: org/w3c/dom/range/Range What precautions must I care? Need some help... Thanks Jc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk / getRemoteUser()
Hello Fritz, You need to set tomcatAuthentication=false on your ajp13 connector config in server.xml (if not present, it defaults to true)... Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 tomcatAuthentication=false/ Jake Wednesday, May 15, 2002, 8:28:18 AM, you wrote: FLG Hello all, FLG Problem getting apache httpd-server login name from a Servlet: FLG I'm having a cocoon-in-Tomcat-in-Apache Installation where FLG - my Apache httpServer is equipped with a user authentication by FLG htpasswd -c $APACHE_HOME/passwd/password username FLG(seems to work properly - my apache access_log shows usernames) FLG and FLG - the httpd-Tomcat connection is via mod_jk FLG(seems to work properly) FLG - I'm doing a regular HTTP/1.1 Request FLG Now I try to resolve the (httpd-)username inside my Servlet by calling FLG ((HttpRequest)request).getRemoteUser(); FLG That returns NULL ! FLG (actually my cocoon core.log says explicitely so: REMOTE USER: null) FLG - Why ? FLG In other words: FLG Am I right, assuming that my Apache httpd-server cuts off the username FLG from the Request before passing it to Tomcat and FLG how can I teach it (or mod_jk) to refrain from doing so ? FLG Thanks for reading this, greetings - Fritz FLG -- FLG To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] FLG For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk not mapping uri successfully for servlets on 3.3.1
Hmm... you should have the following as the base minimum for any context...in your case, the ROOT context: IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /var/log/tomcat/jk.log JkLogLevel emerg # Static files Alias / /usr/local/tomcat/webapps/ROOT Directory /usr/local/tomcat/webapps/ROOT Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /WEB-INF/* AllowOverride None deny from all /Location Location /META-INF/* AllowOverride None deny from all /Location JkMount /servlet ajp13 JkMount /servlet/* ajp13 JkMount /*.jsp ajp13 /IfModule That should work fine. Jake At 11:36 AM 5/15/2002 +1000, you wrote: Ok... some more information... JkMount /*/servlet/* ajp13 It turns out, that this line breaks apache! Warning warning warning don't use it! I just spent 5 hours recompiling apache, checking httpd.conf etc et al to discover after a few hours sleep and a coffee that it's actually this line in mod_jk.conf that's breaking my websites right now and not apache being weird. Now, to clarify a bit: - I used to run tomcat 3.2.2, with the mod_jk that was released with it, and the following line successfully mapped servlets to an ajp13 worker: JkMount /servlet/* ajp13 - I now run tomcat 3.3.1, with the new mod_jk, and that line does not successfully map servlets to an ajp13 worker. It fails, saying map_uri_to_worker, done without a match - the equivalent line for JSPs works fine for old tomcat new tomcat - no problems there. - I tried adding /*/servlet/* ajp13 as a workaround - maybe the uri match was failing because of the leading webappname i.e. the uri would look like: /testapp/servlet/index . Initially, I had success - it was successfully mapped to an ajp13 worker. However, it also mapped *everything* else, regardless of how the path looked (html, directories, gifs, jpgs etc etc etc) that lived in the normal apache htdocs directories. In other words, tomcat had taken over apache! insert growling tomcat noise here But, this still leaves me with the basic problem, which is that the stock standard mod_jk.conf file isn't mapping servlets correctly. So, some questions... 1. Is my mod_jk.conf file correct? IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /var/log/tomcat/jk.log JkLogLevel error JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /IfModule 2. Is mod_jk behaving correctly? 3. If mod_jk isn't behaving correctly, how do I fix it / or get more information from it? Thanks, Chris |-Original Message- |From: Larry Isaacs [mailto:[EMAIL PROTECTED]] |Sent: Wednesday, 15 May 2002 00:24 |To: 'Tomcat Users List' |Subject: RE: mod_jk not mapping uri successfully for servlets on 3.3.1 | | |The jakarta-tomcat-connectors/jk/native sources have small improvements |and bug fixes over that found in jakarta-tomcat/src/native. One of the |improvements is support for JkMount /*/... that you discovered. | |Cheers, |Larry | | -Original Message- | From: Chris Herrmann [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, May 15, 2002 5:21 AM | To: [EMAIL PROTECTED] | Subject: RE: mod_jk not mapping uri successfully for |servlets on 3.3.1 | | | Hi Larry, | | No, I haven't tried: | | JkMount /testapp/servlet/* ajp13 | | doing so now... | | I upgraded to the latest mod_jk.so as well from | jakarta.apache.org. I tried | both with and without eapi support to see if it made a |difference (and | rebuilt apache with and without eapi support accordingly. | Currently it's | on). | | Ok... so... adding your suggestion above works... | | Previously, I haven't had to do this. I also tried adding: | | JkMount */servlet/* ajp13 | | doesn't work but: | | JkMount /*/servlet/* ajp13 | | does work. | | Has the way mod_jk parses paths changed in the latest version? | | Cheers, | | Chris | | | Hi Chris, | | It is not clear if you tried: | | JkMount /testapp/servlet/* ajp13 | | I assume you build the mod_jk.so from Tomcat 3.3.1's | source. Using a | mod_jk from Tomcat 3.2.x has the potential to hang. | | Cheers, | Larry | | | | | -- | To unsubscribe, e-mail: | mailto:tomcat-user- [EMAIL PROTECTED] | For | additional commands, | e-mail: mailto:[EMAIL PROTECTED] | | |-- |To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Commercial support for apache+tomcat on windows
try http://www.multitask.com.au/default.html?page=mtSOS jake At 05:07 PM 5/13/2002 -0700, you wrote: Hi Does anybody help me finding out right commercial supporting company for apache +tomcat on windows other than covalent ? thanks in advance BM -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: getRemoteUser() problem
Hello Lloyd, On your Connector tag in Server.xml, you need to have tomcatAuthentication=false. It defaults to true. If true, getRemoteUser() will give you a null value. When false, you will get the remote user from Apache. For example: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 tomcatAuthentication=false/ Jake Thursday, May 09, 2002, 2:43:35 PM, you wrote: LHM I am using Apache 1.3.24 and tomcat 4.0.4 beta2 and mod_webapp (fairly LHM recent code snapshot) on Solaris 8. I am doing Basic Authentication from LHM Apache to a LDAP server. I cannot get the Remote User from LHM HttpServletRequest. I went through the archives and found a workaround LHM by unencoding the Authorization header. Is this problem in tomcat or LHM mod_webapp? Is this going to be fixed? Am I doing something wrong? LHM Thanks for any pointers, LHM Lloyd LHM -- LHM To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] LHM For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Tomcat redirect
Hello joshua, Well, actually, all you've done here is specify a context called servlet which has it's docbase sitting on the file system as /spike/servlet. This would assume that you are on a Unix system and you have a directory called spike off the root of your sytem with a directory called servlet inside that. In this case, the address to your webapp would be: http://myserver.com/servlet/ However, I would avoid calling your context servlet because I think it will conflict with the default servlet mapping that Tomcat provides for you. In fact I think you are confusing the /servlet/* mapping that Tomcat provides for all webapps via its default web.xml with setting up a context. Let's assume that you place your new context in Tomcat's 'webapps directory and it is called myservlets. You can either not bother explicitly stating the Context for this webapp in the Server.xml and let Tomcat create a default one for it, or you can go ahead and specify it like this: Context path=/myservlets docBase=myservlets The path says that requests to http://myserver.com/myservlets refer to a Tomcat-served Servlet context. The docBase says where the context's directory exists on the file system. Here, we are saying that it exists in the current directory (relative the webapps directory). You could also put this elsewhere on your file system, but you must then provide a path relative to webapps directory by saying something like ../../../../myservlets which says myservlets is located 4 directories back from wherever the webapps directory exists or you can specify a hardcoded path like C:\myapps\myservlets on windows or /myapps/myservlets on Unix. Now with that set up, calling your servlet that redirects to another servlet might go something like this: http://myserver.com/myservlets/servlet/MyRedirectServlet which might redirect to another servlet MyRedirectResultServlet You'd have to make sure that the redirection goes to /servlet/MyRedirectResultServlet in order for Tomcat to catch this request as a request to this other servlet. Did that answer the question or am I missing something? Bottom line, rename your context to something other than servlet to avoid confusion. Jake Tuesday, May 07, 2002, 10:08:41 AM, you wrote: jw I was hoping of something within the Tomcat configuration itself since we jw don't use an index.jsp file. To be more specific about my problem, Whenever jw a servlet calls another servlet in Tomcat it isn't intercepting the jw /servlet/ directive and replacing it with /spike/servlet/ which is what it jw should be doing. Perhaps I'm overlooking something obvious in the jw configuration that will do this, but I've tried putting a jw Host name=DEFAULT jw Context path=/servlet jw docBase=/spike/servlet / jw /Host jw Entry in the server.xml file, but that didn't seem to do it either... jw Someone smack me with a clue stick and tell me what I'm doing wrong? jw Josh jw - Original Message - jw From: Oki DZ [EMAIL PROTECTED] jw To: Tomcat Users List [EMAIL PROTECTED] jw Sent: Monday, May 06, 2002 8:17 PM jw Subject: Re: Tomcat redirect jw On 05/07 04:19 joshua wentworth wrote: I am trying to have Tomcat redirect certain requests to other applications or other sites. But I can't find anything in the documentation or in any jw of the messageboards about any kind of forward or redirect function in jw Tomcat. Is there such a function, and if so where can I find documentation on it? jw You can use the following in my index.jsp, so that the main page will be jw redirected to some other location: % jw response.sendRedirect(response.encodeRedirectURL(new URL)); % jw Oki jw -- jw To unsubscribe, e-mail: jw mailto:[EMAIL PROTECTED] jw For additional commands, e-mail: jw mailto:[EMAIL PROTECTED] jw -- jw To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] jw For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[4]: Tomcat redirect
Hello joshua, Well, take a look at the form action: action=/servlet/CatalogServlet This isn't even a servlet to servlet call. This is a browser to servlet call. On top of that, you are telling the form to be sumbmitted to http://our.server.com:8080/servlet/CatalogServlet This tells Tomcat to look in the ROOT context and find a servlet called CatalogServlet. However, you want to look in the spike context. Just change your action to the following: Assuming you are at a web address that looks like: http://our.server.com/spike/servlet/SomeServlet action=CatalogServlet will be translated by the browser as a request to: http://our.server.com/spike/servlet/CatalogServlet or if you don't want to count on being in the /spike/servlet path already like above, then provide a hard path off the root of the web server: action=/spike/servlet/CatalogServlet Which translates to the following no matter what your current URL is: http://our.server.com/spike/servlet/CatalogServlet If you are wondering how to dynamically write this link in your servlet, just do: req.getServletContext() + /servlet/CatalogServlet That will translate to: /spike/servlet/CatalogServet which is what you want. Note, it also works if you are using the ROOT context since req.getServletContext() will return / in that case. Does that help? Jake Tuesday, May 07, 2002, 11:16:35 AM, you wrote: jw Yeah, I figured that out a bit later. The problem seems to be that Tomcat is jw just ignoring the call to /servlet/Whatever. jw The situation is like this, I'm trying to get as specific as possible now. jw The code looks like this: jw form name=insertForm action=/servlet/CatalogServlet onSubmit=return validate() jw And if someone clicks on that button they get a 404 and Tomcat returns the jw error that it can't find /servlet/CatalogServlet. This exists without any jw context stuff setup in server.xml. The problem is that in the original jw call to the original servlet we have apache redirecting the request to jw http://our.server.com:8080/spike/servlet/OurServlet and when OurServlet jw calls OtherServlet via the code above it tries to locate it on jw http://our.server.com:8080/servlet/OtherServlet and that doesn't work. It jw has to have the /spike/ in there. So... Any idea how I can do that? One of jw the issues is that I can't change the code in the servlet itself (Otherwise jw fixing this would be trivial). jw Josh jw - Original Message - jw From: Jacob Kjome [EMAIL PROTECTED] jw To: Tomcat Users List [EMAIL PROTECTED] jw Sent: Tuesday, May 07, 2002 12:01 PM jw Subject: Re[2]: Tomcat redirect Hello joshua, Well, actually, all you've done here is specify a context called servlet which has it's docbase sitting on the file system as /spike/servlet. This would assume that you are on a Unix system and you have a directory called spike off the root of your sytem with a directory called servlet inside that. In this case, the address to your webapp would be: http://myserver.com/servlet/ However, I would avoid calling your context servlet because I think it will conflict with the default servlet mapping that Tomcat provides for you. In fact I think you are confusing the /servlet/* mapping that jw Tomcat provides for all webapps via its default web.xml with setting up a context. Let's assume that you place your new context in Tomcat's 'webapps directory and it is called myservlets. You can either not bother explicitly stating the Context for this webapp in the Server.xml and let Tomcat create a default one for it, or you can go ahead and specify it like this: Context path=/myservlets docBase=myservlets The path says that requests to http://myserver.com/myservlets refer to a Tomcat-served Servlet context. The docBase says where the context's directory exists on the file system. Here, we are saying that it exists in the current directory (relative the webapps directory). You could also put this elsewhere on your file system, but you must then provide a path relative to webapps directory by saying something like ../../../../myservlets which says myservlets is located 4 directories back from wherever the webapps directory exists or you can specify a hardcoded path like C:\myapps\myservlets on windows or /myapps/myservlets on Unix. Now with that set up, calling your servlet that redirects to another servlet might go something like this: http://myserver.com/myservlets/servlet/MyRedirectServlet which might redirect to another servlet MyRedirectResultServlet You'd have to make sure that the redirection goes to /servlet/MyRedirectResultServlet in order for Tomcat to catch this request as a request to this other servlet. Did that answer the question or am I missing something? Bottom line, rename your context to something other than servlet to avoid confusion. Jake Tuesday, May 07, 2002, 10:08:41 AM, you wrote: jw I was hoping of something within the Tomcat configuration
Re: Running an external application from a Java servlet environment
Hello Helen, The media player is a client side thing. It has no clue whatsoever that you sent the media content via a servlet or a static file. You just have to make sure that when you send the content in the response that you set the appropriate mime-type. If the user has media player installed *and* it is associated with that mime-type, then media player will be automatically launched on the users machine to play the content. Jake Tuesday, May 07, 2002, 11:28:50 AM, you wrote: HDP Dear People, HDP I am trying to invoke Windows Media Player from within a Java Servlet environment using Tomcat however I can only invoke the application but I CAN'T seem to automatically get it to play any HDP content. I have to physically type in the path and then WIndows media player will play it. Is there any way that I can not only launch the media player AND play the content from within there? If HDP I can't why not? I am guessing that Java Servlets have only a sandbox environment involved in there! HDP Regards HDP Helen Pringle HDP __ HDP Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ HDP Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ HDP -- HDP To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] HDP For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Can somebody help me with this one: Choosing between standard Tomcat 4.0.3 and jdk1.4 LE
Hello Sankaranarayanan, Just download the full version. The only difference is that if you are using JDK1.4, the JDK already contains some of the necessary libraries so they don't need to be included in Tomcat, but it won't hurt anything if they are. Just use the full version and you won't have to think about this issue. Jake Tuesday, May 07, 2002, 12:19:41 PM, you wrote: SGG Any hep will be greatly appreciated. -Original Message- From: Sankaranarayanan (Ganesh) Ganapathy Sent: Monday, May 06, 2002 3:05 PM To: '[EMAIL PROTECTED]' Subject: Choosing between standard Tomcat 4.0.3 and jdk1.4 LE Hi All, I want to user tomcat with jdk 1.3 and jdk 1.4. The question I am trying to answer is if I should use the Tomcat 4.0.3 standard or the JDK 1.4 LE version The difference that is mentioned in the apache site is that standard edition includes optional libraries and xml parser while the other one doesnt. I guess to run the jdk1.4 LE on jdk1.2+ the user needs to add an XML parser, I understand that part. I dont understand what it means to have/not have the optional libraries (Tyrex, JavaMail, Java Activation Framework, JNDI or JDBC standard extension) - more so about tyrex, is there any functionality enabled /disabled in tomcat because of the same? - or does it mean that apps running in tomcat that use javamail api or jndi or jdbc standard extension api will not work unless these are added. Does the tomcat 4.0.3 with the optional libraries and xerces parser continue to work as it is with jdk1.4? Any help will be greatly appreicated. Thanx in advance Ganesh SGG -- SGG To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] SGG For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Help with hiding resources
Hello Kris, You probably could use a servlet to serve up the .jar file for the applet. In the archive attribute, you could have a call to the servlet which would serve up the .jar file from somewhere other than the public area of the webapp. However, they'd still be able to go to that address to grab the file. YOu could try using obfuscation to make it so that any decompiled code is so obtuse that it would be pretty much unusable by anyone else. That's probably your best solution. Jake Tuesday, May 07, 2002, 12:31:14 PM, you wrote: KK One more question Alessio (if you don't mind), KK If I have to put the jars in a subdirectory of a tomcat context root KK directory then is there any way to hide them from someone that can download KK them simply by typing http://mydomainname/applications/jars/myjarfile.jar? KK Thanks again. KK Regards KK Kris KK -Original Message- KK From: Alessio Fiore [mailto:[EMAIL PROTECTED]] KK Sent: Tuesday, May 07, 2002 10:12 AM KK To: 'Tomcat Users List' KK Subject: R: Help with hiding resources Thank you Alessio, does this mean that if I put the jar files in WEB-INF/lib directory they will be invisible to the browser? The WEB-INF/lib directory is a subdirectory off of the Root directory called applications, which is the directory hosting the jsp files launching the applets and as such it should be accessible by the applet that the codbase points to applications directory (at least this is my understanding). Does Tomcat prohibit the KK html page generated by the jsp:plugin from accessing the jar files in the WEB-INF/lib directory? And if so do they have to be in a generic directory off of the root directory? KK Yes, WEB-INF and META-INF subdirs of a tomcat context root directory are not KK accessible externally (so the browser doesn't have access to any file under KK these dirs). They're just accessible internally (by the server-side KK application). Your applet files (.class or .jar) must be visible by the KK browser, because their reference is put in JSP-generated HTML page (that is KK parsed and managed by the browser itself), so you have to put them under a KK subdirectory of applications other than WEB-INF. KK Regards KK Alessio Sorry if my mumbling is confusing I am just trying to understand what my options are. Thanks Kris KK -Original Message- KK From: Alessio Fiore [mailto:[EMAIL PROTECTED]] KK Sent: Tuesday, May 07, 2002 9:37 AM KK To: 'Tomcat Users List' KK Subject: R: Help with hiding resources KK Hi Kris, the jar that contains the applet and related classes *must* be KK accessible by the browser. If not the browser could not load it and extract KK the applet (throwing the java.io.FileNotFoundException). KK -Messaggio originale- KK Da: Kris Kras [mailto:[EMAIL PROTECTED]] KK Inviato: martedì 7 maggio 2002 15.09 KK A: [EMAIL PROTECTED] KK Oggetto: Help with hiding resources KK Hello all, KK I have an application using jsps, servlets and applets runing under Tomcat KK 4.03 and Struts 1.0 (win2k server). KK My application is located under C:\Tomcat4\webapps\applications\ and all KK jsp files are there. Some jsps launch applets through jsp:plugin tags. KK Applets are packaged in jars located in KK C:\Tomcat4\webapps\applications\jars\. A code fragment launching applets KK looks like this: KK jsp:plugin KK type = applet KK code = myapplet.MyAppletClass.class KK archive = jars/myapplet.jar KK codebase = . KK ... KK When I run the jsp files everything works great and applets launch KK correctly. KK The problem is that with this directory structure the jar files are visible KK and can be downloaded by typing KK http://www.domainmame.com/applications/jars/; or KK http://www.domainmame.com/applications/jars/myapplet.jar; and ultimatelly KK decompiled. I would like to hide the resources (jar files and everything KK else that is located in subdirectiories of \applications\. I have tried KK putting the jar files in C:\Tomcat4\webapps\applications\WEB_INF\lib\ KK where all other jar files (struts.jar, etc.) are located, but then KK regardless of what I used for archive and codebase parameters in KK jsp:plugin tag I get and file not found exception in the plugin console KK (java.io.FileNotFoundException: KK http://www.domainmame.com/applications/WEB-INF/lib/myapplet.jar) even though KK the jar file is there. KK I have tried setting the following values for archive and codebase KK parameters in jsp:plugin tag with the jar file in KK C:\Tomcat4\webapps\applications\WEB_INF\lib\: KK archive = myapplet.jar KK codebase = . KK archive = /WEB-INF/lib/myapplet.jar KK codebase = . KK archive = myapplet.jar KK codebase = / KK archive = myapplet.jar KK codebase = /applications/WEB-INF/lib/ KK None of the combinations worked. Can anyone help me with configuring these KK two parameters so the Tomcat can find myapplet.jar. KK Or is there a better solution to
Re: file path problem
Hello Bharanidharan, Don't confuse the system file path with the URL path. What URL is in your browser on the page that contains the window.open()? window.open will try to find the page relative to your domain root. If you are at: http://www.myserver.com/mywebapp/servlet/myservlets.login Then the code you have for window.open will be attempting to find a directory on the server that simply doesn't exist. You would be able to get to your myhtml directory with this, though. window.open(../myhtml/loggedin.html); However, you can't count on this, because what if you did a servlet mapping and you got to your login servlet via: http://www.myserver.com/mywebapp/login now, the proper way to get to your html page would be: window.open(myhtml/loggedin.html); The issue here is that you are hard-coding a path that can't be assumed. What you should do, instead is the following: out.println(window.open(\ + req.getContextPath() + /myhtml/loggedin.html\); After doing this, it doesn't matter where you invoke your servlet from as long as the static html is in the proper location relative to the root of the webapp. Jake Monday, May 06, 2002, 11:30:37 AM, you wrote: MB Hi all, MBI have my login servlet under MB webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a MB loggedin.html from this servlet. loggedin.html is located under MB webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave MB window.open(../../../myhtml/loggedin.html);. MB but apache gives error saying resource /myhtml/loggedin.html couldnt not be MB found. I tried copying this file to various directories including the MB template directories under jetspeed but no success.. can someone how the MB file path is specified in jetspeed.. MB thanks MB bharani. MB -- MB To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] MB For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Access to the source code from the beginning
Hello Emilio, Are you using Apache and mod_jk to front requests to Tomcat? If so, you need to protect the static files or directories using Apache directives. Only if you forward *all* requests to Tomcat or just go directly to Tomcat on port 8080 will the previously mentioned solutions work. Jake Monday, May 06, 2002, 12:51:49 PM, you wrote: EM So sorry, but apparently it doesn`t work , I made the changes and it still EM show the directories EM even with the examples directory of the tomcat I have the problem. EM http://myhost:8080/examples/ EM Directory Listing For /Filename Size Last Modified EM images/ Tue, 09 Apr 2002 18:05:14 GMT EM jsp/Tue, 09 Apr 2002 18:05:14 GMT EM servlets/ Tue, 09 Apr 2002 18:05:12 GMT EM Apache Tomcat/4.0 EM Please some other advice? I am using Tomcat4.0.3 I found the file, ok, I EM turn off , I have the welcome page, but apparently it just work for the main EM page, but what happen when I try to enter to my webapps like examples? EM Really apreciate your help EM -Mensaje original- EM De: Golan [mailto:[EMAIL PROTECTED]] EM Enviado el: lunes, 06 de mayo de 2002 12:38 EM Para: Tomcat Users List EM Asunto: RE: Access to the source code from the beginning EM Emilio: EM Check out the web.xml file located at ./TOMCAT_HOME/conf/web.xml. EM You will notice, probably in the first servlet/ mapping, the following... EM init-param EM param-namelistings/param-name EM param-valuetrue/param-value EM /init-param EM change this to... EM init-param EM param-namelistings/param-name EM param-valuefalse/param-value EM /init-param EM Restart your server and this should solve the problem you have indicated. EM Peace, EM Tal EM -Original Message- EM From: Emilio Miranda [mailto:[EMAIL PROTECTED]] EM Sent: Monday, May 06, 2002 10:29 AM EM To: Tomcat Users List EM Subject: Access to the source code from the begining EM Hello!! EM I am developing a little site : EM http://myhost:8080/mkg/ EM In mkg I have mi site, well if I put this link it appears the list of all my EM files like this : EM Directory Listing For / EM Filename Size Last Modified EM cfg/Sat, 04 May 2002 00:19:27 GMT EM images/ Thu, 02 May 2002 21:52:59 GMT EM jsp/Fri, 03 May 2002 23:35:32 GMT EM servlets/ Thu, 02 May 2002 21:52:59 GMT EM And somebody could read it, I mean the source code or cfg files. ... what EM can I do in order to avoid this? EM Thanks a lot! EM -- EM To unsubscribe, e-mail: EM mailto:[EMAIL PROTECTED] EM For additional commands, e-mail: EM mailto:[EMAIL PROTECTED] EM --- EM Incoming mail is certified Virus Free. EM Checked by AVG anti-virus system (http://www.grisoft.com). EM Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 EM --- EM Outgoing mail is certified Virus Free. EM Checked by AVG anti-virus system (http://www.grisoft.com). EM Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 EM -- EM To unsubscribe, e-mail: EM mailto:[EMAIL PROTECTED] EM For additional commands, e-mail: EM mailto:[EMAIL PROTECTED] EM -- EM To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] EM For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: file path problem
Hello Bharanidharan, /servlet/ is a mapping provided for you by Tomcat. In fact, take a look in the web.xml in $TOMCAT_HOME/conf and look for that mapping: !-- The mapping for the invoker servlet -- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping If tomcat didn't provide this, you would have to set up a mapping for each and every one of your servlets that you wished to run. With this, you can run any servlet in your webapp by naming the servlet with the full package name. When you want a more convenient URL to invoke your servlet, you can provide your own mapping in a similar way as the above example in your own web.xml. Keep in mind that the /servlet/ mapping is *not* guaranteed to exist across containers, although I would imagine that a number of containers might just copy Tomcat's lead on this to be compatible. Jake Monday, May 06, 2002, 2:16:11 PM, you wrote: MB jack, MB I have a quick question. in your example below, i.e. MB http://www.myserver.com/mywebapp/servlet/myservlets.login MB you mean to say servlet in the URL is mapped to Web-inf directory under MB jetspeed??.. i am still unable to comprehend the url path. MB thanks MB bharani MB -Original Message- MB From: Jacob Kjome [mailto:[EMAIL PROTECTED]] MB Sent: Monday, May 06, 2002 1:08 PM MB To: Tomcat Users List MB Subject: Re: file path problem MB Hello Bharanidharan, MB Don't confuse the system file path with the URL path. MB What URL is in your browser on the page that contains the MB window.open()? MB window.open will try to find the page relative to your domain root. MB If you are at: MB http://www.myserver.com/mywebapp/servlet/myservlets.login MB Then the code you have for window.open will be attempting to find a MB directory on the server that simply doesn't exist. You would be able MB to get to your myhtml directory with this, though. MB window.open(../myhtml/loggedin.html); MB However, you can't count on this, because what if you did a servlet MB mapping and you got to your login servlet via: MB http://www.myserver.com/mywebapp/login MB now, the proper way to get to your html page would be: MB window.open(myhtml/loggedin.html); MB The issue here is that you are hard-coding a path that can't be MB assumed. What you should do, instead is the following: MB out.println(window.open(\ + req.getContextPath() + MB /myhtml/loggedin.html\); MB After doing this, it doesn't matter where you invoke your servlet from MB as long as the static html is in the proper location relative to the MB root of the webapp. MB Jake MB Monday, May 06, 2002, 11:30:37 AM, you wrote: MB Hi all, MBI have my login servlet under MB webapp/jetspeed/web-inf/classes/myservlets/login.class. I invoke a MB loggedin.html from this servlet. loggedin.html is located under MB webapps/jetspeed/myhtml/loggedin.html. so in my servlet, i gave MB window.open(../../../myhtml/loggedin.html);. MB but apache gives error saying resource /myhtml/loggedin.html couldnt not MB be MB found. I tried copying this file to various directories including the MB template directories under jetspeed but no success.. can someone how the MB file path is specified in jetspeed.. MB thanks MB bharani. MB -- MB To unsubscribe, e-mail: MB mailto:[EMAIL PROTECTED] MB For additional commands, e-mail: MB mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[4]: file path problem
Hello Bharanidharan, Ah, I didn't see that before. You don't want to store your static files under WEB-INF. That is purely for servlets and other general classes and some config stuff such as the web.xml that you don't want to have directly accessible via the web. You would put your html file one directory up from WEB-INF in your jetspeed directory. This is also where you would put .jsp files. Also, you don't actually have to provide the /servlet/* mapping in your own web.xml. You will get that functionality already because it is in Tomcat's default web.xml. All you need to know is that it is the functionality that it provides. Now, keep in mind that nothing within WEB-INF will be accessible without some sort of mapping. We are using the default /servlet/ mapping that Tomcat provides. So, when you see: http://www.myhost.com/jetspeed/servlet/myservlet.NewLogin The /servlet part of of that URL is virtual. The mapping is provided by the web server. The request goes through an invoker servlet that runs the requested servlet for you. That is much different than going to your html file which should be at... http://www.myhost.com/jetspeed/templates/vm/navigations/html/loggedinportlet.html Although, that assumes that you would move the root of templates into the jetspeed directory rather than have it exist under the WEB-INF directory. As you can see, the server needs no mapping information for static files other than knowing what directory or virtual directory http://www.myhost.com/jetspeed/ points to. After that, you just follow the directory structure within the jetspeed directory to determine the URL path to the static document. This is not so with servlets. You can't just browse to a servlet at some physical path on the disk. You refer to servlets through servlet mappings. BTW, if you created a directory called servlet to store static files, you wouldn't be able to get to them because Tomcat would intercept the pattern /servlet/ and try to map the named entity that comes after that rather than serving the named entity directly from that directory. For instance, if you had: /webapps/jetspeed/servlet/templates/vm/navigations/html/loggedinportlet.html and tried to get to that page via: http://www.myhost.com/jetspeed/servlet/templates/vm/navigations/html/loggedinportlet.html Tomcat would report an http 404 error because it tries to find a servlet to invoke named templates/vm/navigations/html/loggedinportlet.html or with a class name of templates/vm/navigations/html/loggedinportlet.html Which brings to mind another trick. You can name your servlet and get there via the servlet-name rather than having to specify the whole package + Servlet class name adding the following to your web.xml: servlet servlet-namenewlogin/servlet-name servlet-classmyclasses.NewLogin/servlet-class /servlet Now you can get to your servlet via the class-name: http://www.myhost.com/jetspeed/servlet/myservlet.NewLogin or via the servlet-name: http://www.myhost.com/jetspeed/servlet/newlogin You can also, then, provide your own mapping for the servlet named newlogin such as: servlet-mapping servlet-namenewlogin/servlet-name url-pattern/login/url-pattern /servlet-mapping which allows you to get to your servlet without having to go through the default /servlet/ mapping like this: http://www.myhost.com/jetspeed/login notice that the servlet-name in servlet and servlet-mapping must be *exactly* the same (case sensitive too). Does that make more sense or did I just add to the confusion? Jake Monday, May 06, 2002, 3:14:21 PM, you wrote: MB Jack.. i am sorry its very complicated for me and i didnt understand MB anything you said.. I am new to tomcat environment. MB I have a servlet under MB /webapps/jetspeed/Web-inf/classes/myservlet/NewLogin.class. In that servlet MB i have to call a html file that is kept under MB /webapps/jetspeed/Web-inf/templates/vm/navigations/html/loggedinportlet.html MB . MB I have the following code in web.xml MB !-- The mapping for the invoker servlet -- MB servlet-mapping MB servlet-nameinvoker/servlet-name MB url-pattern/servlet/*/url-pattern MB /servlet-mapping MB how do i map the html file in my NewLogin.class servlet. i still dont get MB how the webpath is mapped to the system file path... MB sorry for the inconvenience. MB please let me know.. MB thanks MB bharani. MB -Original Message- MB From: Jacob Kjome [mailto:[EMAIL PROTECTED]] MB Sent: Monday, May 06, 2002 3:52 PM MB To: Tomcat Users List MB Subject: Re[2]: file path problem MB Hello Bharanidharan, MB /servlet/ is a mapping provided for you by Tomcat. In fact, take a MB look in the web.xml in $TOMCAT_HOME/conf and look for that mapping: MB !-- The mapping for the invoker servlet -- MB servlet-mapping MB servlet-nameinvoker/servlet-name MB url-pattern/servlet/*/url-pattern MB /servlet-mapping MB If tomcat didn't provide this, you would
Re: Apache 2.0 Tomcat 4.0 integration on Win 2000: Please help me
Hi Ryan, Check the archives for the subject: mod_jk for Apache 2 on Win32?. You probably have issues with your mod_jk.conf and/or your workers.properties. I posted my files there as examples of something that works. Of course you need to adapt it for your own purposes, but it should get you started. The messages were posted with attached files on 4/30/2002. Using those configuration files and the binary from http://www.acg-gmbh.de/mod_jk/ allows Apache 2.x.x and Tomcat 4.x.x to work great together. Jake At 11:51 PM 5/4/2002 -0400, you wrote: Hi! I need to integrate Apache 2 and Tomcat 4 on Windows 2000. I run into a whole lot of problems. The main problem is that Apache cannot load the mod_jk.dll module. I referred to a website and got another version of a re-compiled mod_jk.dll, but did no good. Has anyone integrated Apache 2 and Tomcat 4 on Windows 2000? Otherwise, any help would be greatly appreciated. I have been working on this for days and have reached nowhere... Do drop me a line Thanks! Ryan. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Location of *.jsp files
You put .jsp files in the same place as you would put the .html files for your webapp. However, you do need to make sure that you have the following mapping: JkMount /*.jsp ajp13 Jake At 02:26 PM 5/3/2002 -0400, you wrote: Here is my set up. Windows2000Professional Apache2.0 Tomcat4.0.3 j2sdk1.4.0 Basically both Tomcat and Apache are installed and running. I created a virtual host in Apache with the following information NameVirtualHost 1XX.1XX.2X.1XX VirtualHost 1XX.1XX.2X.1XX ServerName www.bootini.com ServerAlias bootini.com DocumentRoot c:/www.bootini.com DirectoryIndex index.html /VirtualHost This is running also. Now the big question. Where do I place the *.jsp files? In this directory or do I need to edit server.xml of Tomcat and reference this Virtual Host Thanks in Advance. ** This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Contexts
You really need to look at the structure of the other webapps. For instance, look at the examples webapp that comes with Tomcat. Notice that it has a WEB-INF directory with classes and lib directories underneath. That is where servlets go. Also, the web.xml file goes in WEB-INF. *.jsp files do not go inside the WEB-INF directory. They go in the same places as .html files go. You should make sure you study existing examples to find patterns on how things are set up. You should also get a servlet book. I'm sure the first chapter would answer most of these questions. Jake At 04:27 PM 5/4/2002 -0500, you wrote: I am totally new to Tomcat ( and servlets JSP's in general ). I have successfully installed Tomcat but do NOT seem to be able to successfully configure a location for my Sevlets and JSP's. My default Home for Tomcat is d:\jbuilder5\jakarta-3.2.1 Currently, if I place a servlet under the directory d:\jbuilder5\jakarta-3.2.1classes ...it runs fine. I simply reference http://localhost:8080/servlet/SomeServletName http://localhost:8080/servlet/SomeServletName in my browser URL. JSP's run fine if placed under d:\jbuilder5\jakarta-3.2.1\webapps\examples\jsp. I simply reference http://localhost:8080/examples/jsp/SomeJSPName.jsp http://localhost:8080/servlet/SomeServletName in my browser URL. Both of these are directories created by the Tomcat install process. From what I have read, I should be able to modify SERVER.XML file to specify a CONTEXT I would like. So far NO Success ...I made the entries: Context path=/ServletRoot docBase=webapps/ServletRoot crossContext=false debug=0 reloadable=true /Context in SERVER.XML in my attempt to create my own SERVLET location. My presumption was that I would create the directory ServletRoot under d:\jbuilder5\jakarta-3.2.1\webapps, place my servlet or JSP file in this new ( ServletRoot ) directory, restart Tomcat and run my servlet using http://localhost:8080/ServletRoot/SomeServletName http://localhost:8080/ServletRoot/SomeServletName . or my JSP file using http://localhost:8080/ServletRoot/SomeJSPName.jsp. http://localhost:8080/ServletRoot/SomeJSPName.jsp. This does not work ...all is well though if I put my servlet in the CLASSES directory or my new JSP file in the d:\jbuilder5\jakarta-3.2.1\webapps\examples\jsp directory ! Any tips on how to structure my own JSP and servlet directories ...Please!! E-Mail [EMAIL PROTECTED]
Re[4]: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting
Hello Tom, Well, how about here: http://www.alexandriasc.com/software/JavaService/source.html Tomcat.exe is simply a program called JavaService: JavaService is a Win32 executable that allows any Java class to be run as an NT service. It uses JNI's invocation API to create a Java Virtual Machine using any JNI compliant Java implementation. Also, the options being referred to have nothing specifically to do with Tomcat at all. They are JVM options...specifically, Sun JVM options for JDK1.3 and JDK1.4. CATALINA_OPTS = -server -Xms8m -Xmx128m 1. -server - use the server VM 2. -Xms8m - Set the initial size of the Java memory allocation pool (that is, the heap) to 8 Mbytes (The default value is 2MB) 3. -Xmx128m - Set the maximum heap size to 128 Mbytes (The default value is 64MB) 4. -Xincgc - Use incremental GC, eliminate occasional garbage-collection pauses during program execution, although 10% hit in overall GC performance The CATALINA_OPTS evironment variable is there as an convenience for you to use when running Tomcat. If you've specified this environment variable, Tomcat, using the scripts to start up, will use these flags when starting itself up. These flags tell the Sun JVM to behave in particular ways that may optimize your application running within the JVM. Does that clear things up? Jake Thursday, May 02, 2002, 1:16:48 AM, you wrote: TB Jake, Also, what is that -jvm_option? I haven't seen that before? My %CATALINA_OPTS% evironment var looks like: -server -Xms8m -Xmx128m. Should I be using -jvm_option? TB I have NO -server option. I think there is a big difference between Tomcat TB 3.x and 4.x. If you type tomcat.exe /? you will see all available options. TB It may also be a difference between Tomcat running as a service (Win$ows TB only) or running it in a shell. TB Some weeks ago I tried to find out where the source code of Tomcat.exe is, TB but nobody replied! It seems to be TOP SECRET open source -:) TB Tom -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: R: what is needed to connect to mysql
Hello Gianluca, Or use: Thread.currentThread().getContextClassLoader().loadClass(dbDriver); Instead of: Class.forName(dbDriver); The latter won't find the driver if it isn't immediately within the same classloader as the class calling Class.forName where the first one will find it in parent classloaders, so you can have the driver in $TOMCAT_HOME/lib or $TOMCAT_HOME/common/lib...or WEB-INF/lib if you still want to do that. Jake Thursday, May 02, 2002, 4:31:15 AM, you wrote: -Messaggio originale- Da: # Lalit Nagpal # [mailto:[EMAIL PROTECTED]] Inviato: giovedì 2 maggio 2002 11.09 A: [EMAIL PROTECTED] Oggetto: what is needed to connect to mysql hello, plz can anybody tell me how to connect to a mysql database through a servlet. i know how to prepare a connection etc through code but what other settings are needed. i am using tomcat 4 as a standalone. The error i get is Class not found org.gjt.mm.mysql.Driver plz help ... GG Put your jdbc driver for mysql in your {webapp}/WEB-INF/lib/folder ... GG It should work! GG Bye, Grava GG -- GG To unsubscribe: mailto:[EMAIL PROTECTED] GG For additional commands: mailto:[EMAIL PROTECTED] GG Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: The Catalina installation path
I assume you are using Windows. Just use tilde's to shorten the file path so there are no spaces such as: C:\Progra~1\Apache~1\Jakarta\tomcat-4-nightly-20020404 However, I wouldn't bother with the installer. Just use the zip builds. Jake At 01:25 PM 5/2/2002 +0800, you wrote: Today, I installed the Tomcat 4.0.4b2 using the self-expanded version first time. The installation directory Apache Tomcat 4.0 is created after running the installation shell. Since I use Ant to do the deployment, I need to set up the catalina home path (the installation doesn't take care of this). After hacking around many times, I still can't set the path right. What shall I type for the Apache Tomcat 4.0? Thx. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2.0 and Tomcat 4.0.3
Assuming you are using mod_jk JkMount /mycontext/*.jsp ajp13 When specifically doing this, you will have to make sure that you have a JkMount statement for all servlet mappings including default ones like *.jsp and all the ones specified in your own web.xml. At a minimum, you'd also want the following mappings: JkMount /admin/servlet ajp13 JkMount /admin/servlet/* ajp13 Then add more mappings based on any servlet-mapping entry in your web.xml Or, you can just do JkMount /mycontext ajp13 JkMount /mycontext/* ajp13 That forwards *all* requests to Tomcat If you use mod_webapp, the release versions don't differentiate between static and dynamic content. So, you would just do something like: WebAppConnection conn warp localhost:8008 WebAppDeploy mycontext conn /mycontext/ WebAppInfo /webapp-info/ however, if you are running under windows, I don't recommend using mod_webapp. It is pretty flaky so far. Jake At 11:09 AM 5/1/2002 +0300, you wrote: Hi guys, Just joined the community. I have a small question i've downloaded Apache 2.0 Tomcat 4.0.3 and i'm using Java SDK 1.4. how do i setup Apache to forward jsp requests to Tomcat. Thanks, Jamshed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: No Realm has been configured to authenticate against
The container can't see your mysql dirver if you put it in WEB-INF/lib...Anything you specifiy in the server.xml for the container to manage needs to be in either server/lib or common/lib. If you also want your webapp to see it also, then the only place for it is common/lib. Jake At 10:09 AM 5/1/2002 +0200, you wrote: Hi, I am trying to get my IIS with Tomcat to work with a JDBCRealm security. For some reason I can't get it working. When I try to start the tomcat server I get all 404 errors in my browser. Does anybody have a sugestion for me? This is the Log I get when I try to start Tomcat. 2002-05-01 10:01:47 WebappLoader[/provitel]: Deploying class repositories to work directory C:\Tomcat4\work\localhost\provitel 2002-05-01 10:01:47 WebappLoader[/provitel]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.13-bin.jar to C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar 2002-05-01 10:01:47 WebappLoader[/provitel]: Reloading checks are enabled for this Context 2002-05-01 10:01:47 StandardManager[/provitel]: Seeding random number generator class java.security.SecureRandom 2002-05-01 10:01:47 StandardManager[/provitel]: Seeding of random number generator has been completed 2002-05-01 10:01:48 ContextConfig[/provitel]: No Realm has been configured to authenticate against 2002-05-01 10:01:48 ContextConfig[/provitel]: Marking this application unavailable due to previous error(s) 2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:01:48 StandardContext[/provitel]: Context startup failed due to previous errors 2002-05-01 10:01:48 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:03:46 WebappLoader[/provitel]: Deploying class repositories to work directory C:\Tomcat4\work\localhost\provitel 2002-05-01 10:03:46 WebappLoader[/provitel]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.13-bin.jar to C:\Tomcat4\webapps\provitel\WEB-INF\lib\mm.mysql-2.0.13-bin.jar 2002-05-01 10:03:46 WebappLoader[/provitel]: Reloading checks are enabled for this Context 2002-05-01 10:03:46 StandardManager[/provitel]: Seeding random number generator class java.security.SecureRandom 2002-05-01 10:03:46 StandardManager[/provitel]: Seeding of random number generator has been completed 2002-05-01 10:03:46 ContextConfig[/provitel]: No Realm has been configured to authenticate against 2002-05-01 10:03:46 ContextConfig[/provitel]: Marking this application unavailable due to previous error(s) 2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming context for context /provitel 2002-05-01 10:03:46 StandardContext[/provitel]: Context startup failed due to previous errors 2002-05-01 10:03:46 StandardContext[/provitel]: Error initializing naming context for context /provitel This is my server.xml file realm classname=org.apache.catalina.realm.JDBCRealm debug=99 drivername=org.gjt.mm.mysql.Driver connectionurl=jdbc:mysql://localhost/tomcatusers?user=heinin_m;password=zer o4u usertable=users usernamecol=user_name usercredcol=user_pass userroletable=user_roles rolenamecol=role_name/ I have an mysql windows server installed on my pc with in it the tomcatusers database as discribed in serveral how-to documents. This is my wb.xml file : security-constraint display-nameSecurity Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/jsp/security/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Anyone with one of the listed roles may access this area -- role-nameheinin_m/role-name role-nametomcat/role-name role-namerole1/role-name /auth-constraint /security-constraint !-- Default login configuration uses form-based authentication -- login-config auth-methodBASIC/auth-method realm-nameTomcat Supported Realm/realm-name form-login-config form-login-page/jsp/security/protected/login.jsp/form-login-page form-error-page/jsp/security/protected/error.jsp/form-error-page /form-login-config /login-config Regards, Maarten Disclaimer This communication together with any attachments transmitted with it ('this E-mail') is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are notified that any use of this E-mail is prohibited. Addressees should ensure this E-mail is checked for viruses. The
Re: Getting to work Apache and Tomcat on Win2000
Yes, everyone has experience problems with mod_webapp on windows. My suggestion is don't use it at all. Use mod_jk until mod_webapp becomes more stable. Jake At 02:28 PM 5/1/2002 +0200, you wrote: Hi Having installed Tomcat 4.0.4-b2 successfully on my Windows 2000 together with the Java Standard Tag Library and the Jakarta String Tag Library, I went on to install Apache 1.3.24 as well. Here the troubles started... I installed the webapp_module according to the instructions and added a connection to Tomcat with the following lines in Apache's httpd.conf: # The connection to Tomcat WebAppConnection tomcat warp localhost:8008 # The examples for JSP WebAppDeploy examples tomcat /examples # The examples for JSTL WebAppDeploy standard-doc.war tomcat /standard-doc WebAppDeploy standard-examples.war tomcat /standard-examples # The examples for the String Tag Library WebAppDeploy string-doc.war tomcat /string-doc WebAppDeploy string-examples.war tomcat /string-examples While everything works as long as I connect to Tomcat directly with http://localhost:8080/ (e.g. using http://localhost:8080/standard-doc/), as soon as I used Apache, the whole system becomes very unstable. I might get away with using one or two .war files, but then Apache crashes. Has anyone experienced the same problems? Thank best regards, Eric swissinfo/Swiss Radio International Eric Lewis IT Engineering Giacomettistrasse 1 CH-3000 Berne 15 Phone: ++41 31 350 95 42 Fax:++41 31 350 99 40 mailto:[EMAIL PROTECTED] Switzerland is everywhere. Stay connected! http://www.swissinfo.org http://mobile.swissinfo.org http:/wap.swissinfo.org SRG SSR idée suisse -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat Cocoon Question
Sure, Add the following to your web.xml... welcome-file-list welcome-fileindex.xml/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list At least you can do that in the Servlet 2.3 spec. I would suggest upgrading to Tomcat 4.x.x anyway. Jake At 08:45 AM 5/1/2002 -0400, you wrote: Im using Cocoon 1.8.2 and Tomcat 3.2.4. IIS 5.0 as my Webserver. I have Tomcat processing my Cocoon xml, and IIS doing all of the static pages. My problem is this. If I go to http://foo.bar.com/index.xml it works fine, but if I go to http://foo.bar.com/ it gives me a directory listing of what is in that directory. Id like for it to default to the index.xml file. Can this be done?? Thanks Anthony Diodato Anthony Diodato Webmaster - IT Prophet 21, Inc. 19 West College Avenue Yardley, PA 19067 1-800-776-7438, ext. 4600 Fax: 215-321-8014 [EMAIL PROTECTED] http://www.p21.com/ Prophet 21 -- Powering the Distribution Industry for the Digital Age For the latest press releases from Prophet 21 -- http://www.p21.com/press/press.html * 2/12/2001 - Trading Partner Connect Offers Enterprise-to-Enterprise (E2E) Commerce * 2/9/2001 -- Prophet 21 CommerceCenter 8.0 is Now Available * 2/9/2001 -- Prophet 21 Upgrades and Enhances Prophet 21 Acclaim For the latest articles on Prophet 21 http://www.manufacturing.net/magazine/id/archives/2001/ind010.02/techupdate. htm http://www.manufacturing.net/magazine/id/develop/techmain01.1.htm http://www.manufacturing.net/magazine/id/archives/2000/ind1201/news.htm Visit our website at http://www.p21.com/visit The information in this e-mail is confidential and may contain legally privileged information. It is intended solely for the person or entity to which it is addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, action taken, or action omitted to be taken in reliance on it, is prohibited and may be unlawful. If you received this e-mail in error, please contact the sender and delete the material from any computer. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]