PROBLEMS:> memory / cpu usage - Tomcat 3.2.1
We have a box[P3/700/512MBram] serving JSPs, with about 20 virtual hosts - and the server comes to a grinding halt after about 12-18 hours. The server gets about 30K hits per week, so it not exactly overloaded... versions: RedHat 7.2 Apache 1.3.20 Tomcat 3.2.1 mod_jk.so mod_jk.so-ap1.3.27-eapi-rh72 processes seem to persist longer than they should. here is a line out of top: 12568 root 18 0 25300 24M 7924 S 3.8 4.9 56:19 java anyone have similar experiences? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual directories/Host via mod_JK2
We have a bunch of customers using JSP on JDK 1.3.1 / Tomcat 3.1?2? / mod_jk / Apache 1.3. The default directory setup for these customers is DIRECTORY http://- path- - ./site_url/htmlhttp://siteurl ./site_url/jsp http://siteurl/jsp ./site_url/cgi-bin http://siteurl/cgi-bin ./site_url/logs-- we use mod_jk.conf-auto to when we add a new site all we have to do is add the virtual host in apache and server.xml, reboot tomcat & apache and we are set. We'd like to move the same setup to JDK 1.4.2_01 / Tomcat 4.1.27 / mod_jk2 / Apache 2 All the HOW-TO's I've found do far and are hence far more more complex than we need. My understanding of how this should work is as follows: in Apache conf file in server.xml VirtualHost1.exported_dir - -> VirtualHost1.contextpath->jsp_dir VirtualHost2.exported_dir - -> VirtualHost2.contextpath->jsp_dir VirtualHost3.exported_dir - -> VirtualHost3.contextpath->jsp_dir VirtualHost4.exported_dir -via mod_jk2.so-> VirtualHost4.contextpath->jsp_dir VirtualHost5.exported_dir -[one entry in -> VirtualHost5.contextpath->jsp_dir VirtualHost6.exported_dir -via mod_jk2.so-> VirtualHost6.contextpath->jsp_dir VirtualHostN.exported_dir - -> VirtualHostN.contextpath->jsp_dir can someone point me to a resource which might provide some info on piping requests to certain virtual directories thru mod_jk2. thanks. Sai. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Sundararaman] [Help me]
Timer? I am not java know-man but with C++ we use thread instead timer because thread it is more efficient. Java has thread too and I have some example of thread with java if you want I can send. - Original Message - From: "Christopher Williams" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "sundararaman" <[EMAIL PROTECTED]> Sent: Saturday, August 30, 2003 6:45 AM Subject: Re: [Sundararaman] [Help me] > I would strongly advise against using the Swing timer object. Try using a > java.util.Timer object instead. I use this in a servlet to perform > automatic daily backups and other automated tasks. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and MsSQL
Frank, What linux user are you using to run tomcat and what user was websphere running under? I am wondering if there are some weird firewalling issues here that allow websphere to open the socket but not tomcat. It seems like a networking issue... Of course, this might be totally the wrong direction too. Is this the same jsp under tomcat and websphere? James Frank von Daak wrote: Hi, maybe, someone of you can help me... I try to port a webapplication from asp to java... First, I have used Websphere for this and everything worked ok, but then I decided to use tomcat4 (both under debian-linux) My problem is the connection to a MSSQL-Database. As JDBC-Driver I'm using the "Microsoft SQL Server 2000 Driver for JDBC", which has an official linux-support. And I cn say, that it is working very well with websphere... When I use the same jsp-files under tomcat, I get the following error, when trying to connect the sql-server: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. I have copied the 3 files "msbase.jar", "mssqlserver.jar" and "msutil.jar" to $CATALINA_HOME/common/lib and it seems, that tomcat can find them (as the error message says) Here is the code, that I use to connect to the database: -- <%@ page language="java" import="javax.sql.DataSource,java.sql.*"%> <% Connection db_con; Statement db; try { Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); } catch (ClassNotFoundException e) { out.println("Der Datenbanktreiber konnte nicht gefunden werden:" + e + e.getMessage() + "" ); } String con = "jdbc:microsoft:sqlserver://192.168.0.199:1433;User=sa; Password=bla;DatabaseName=testdb"; try { db_con = DriverManager.getConnection (con); } catch ( SQLException se ) { out.println("Exception...(" + se.getMessage() + ")-->"); } %> -- What do I have to do, to get it working with tomcat ? Thank you very much for your help !!! Greetings, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error starting latest beta version of catalina - help please
I have just installed the new version 5 beta 5.0.9. I have been unable to start any v5.0.x version on my system. The following messages are produced when I run catalina to show the output. Note that it will not start as a service, or as a startup.bat command. One odd thing, after the installation process, it complains that the Tomcat 5.0 directory does not have a \lib directory. I create this by hand, and it runs, but then crashes with the following messages. Any suggestions as to what is wrong with my configuration? It appears to be having problems starting the logging facility. Thanks, Neil Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 Microsoft Corp. D:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>catalina runUsing CATALINA_BASE: D:\Program Files\Apache Software Foundation\Tomcat 5.0Using CATALINA_HOME: D:\Program Files\Apache Software Foundation\Tomcat 5.0Using CATALINA_TMPDIR: D:\Program Files\Apache Software Foundation\Tomcat 5.0\tempUsing JAVA_HOME: D:\JBuilder8\jdk1.4Aug 29, 2003 4:03:13 PM org.apache.coyote.http11.Http11Protocol initINFO: Initializing Coyote HTTP/1.1 on port 8080Aug 29, 2003 4:03:13 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 9063 msException during startup processingjava.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:190)Caused by: java.lang.ExceptionInInitializerError at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:276) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2304) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at org.apache.catalina.startup.Catalina.process(Catalina.java:214) ... 5 moreCaused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.apache.naming.NamingContext.(NamingContext.java:102) ... 10 moreCaused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525) ... 14 moreCaused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412) ... 15 more D:\Program Files\Apache Software Foundation\Tomcat 5.0\bin> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk and Tomcat 3.2.4
I'm using mod_jk2-2.0.43.dll with Tomcat 4.1.27 and everything is working fine. Marco - Original Message - From: "Bill Barker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 30, 2003 4:39 AM Subject: Re: mod_jk and Tomcat 3.2.4 > AFAIK, the latest-and-greatest should still work with 3.2.x. > > "Armenio Pinto" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hi there, can anyone tell me, please, where can I find the most suitable > version of mod_jk to use with Tomcat 3.2.4? Thanks in advance, > > Arménio Pinto > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and MsSQL
Hi, Am Samstag, 30. August 2003 12:33 schrieb Christopher Williams: > Question: Are you certain that SQL Server is listening on port 1433? I've > seen it using port 1141. Use the SQL Server network utility to check the > TCP port. yes, I'm sure it is, because I use the same jsp-file under websphere an it's working fine. A "telnet 192.168.0.10 1433" also gives a response... > > - Original Message - > From: "Frank von Daak" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, August 30, 2003 10:51 AM > Subject: Tomcat and MsSQL > > > Hi, > > > > > > maybe, someone of you can help me... > > > > I try to port a webapplication from asp to java... > > > > First, I have used Websphere for this and everything worked ok, but then > > I decided to use tomcat4 (both under debian-linux) > > > > My problem is the connection to a MSSQL-Database. > > > > As JDBC-Driver I'm using the "Microsoft SQL Server 2000 Driver for > > JDBC", which has an official linux-support. And I cn say, that it is > > working very well with websphere... > > > > When I use the same jsp-files under tomcat, I get the following error, > > when > > > trying to connect the sql-server: > > > > [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. > > > > > > I have copied the 3 files "msbase.jar", "mssqlserver.jar" and > > "msutil.jar" > > to > > > $CATALINA_HOME/common/lib and it seems, that tomcat can find them (as the > > error message says) > > > > Here is the code, that I use to connect to the database: > > > > -- > > > > <%@ page language="java" import="javax.sql.DataSource,java.sql.*"%> > > <% > > > > Connection db_con; > > Statement db; > > > > try { > > Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); > > } catch (ClassNotFoundException e) { > > out.println("Der Datenbanktreiber konnte nicht gefunden werden:" + > > e > > + > > > e.getMessage() + "" ); > > } > > > > String con = "jdbc:microsoft:sqlserver://192.168.0.199:1433;User=sa; > > Password=bla;DatabaseName=testdb"; > > > > try { > > db_con = DriverManager.getConnection (con); > > } catch ( SQLException se ) { > > out.println("Exception...(" + se.getMessage() + ")-->"); > > } > > %> > > > > -- > > > > > > What do I have to do, to get it working with tomcat ? > > > > > > Thank you very much for your help !!! > > > > Greetings, > > Frank > > > > -- > > Name: Frank von Daak > > eMail: [EMAIL PROTECTED] Homepage: http://www.kpage.de > > eMail: [EMAIL PROTECTED] Homepage: http://www.linux-dev.de > > "If Bill Gates had a nickel for every time Windows crashed... > > - oh wait, he does." > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Name: Frank von Daak eMail: [EMAIL PROTECTED] Homepage: http://www.kpage.de eMail: [EMAIL PROTECTED] Homepage: http://www.linux-dev.de "If Bill Gates had a nickel for every time Windows crashed... - oh wait, he does." - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and MsSQL
Question: Are you certain that SQL Server is listening on port 1433? I've seen it using port 1141. Use the SQL Server network utility to check the TCP port. - Original Message - From: "Frank von Daak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 30, 2003 10:51 AM Subject: Tomcat and MsSQL > Hi, > > > maybe, someone of you can help me... > > I try to port a webapplication from asp to java... > > First, I have used Websphere for this and everything worked ok, but then I > decided to use tomcat4 (both under debian-linux) > > My problem is the connection to a MSSQL-Database. > > As JDBC-Driver I'm using the "Microsoft SQL Server 2000 Driver for JDBC", > which has an official linux-support. And I cn say, that it is working very > well with websphere... > > When I use the same jsp-files under tomcat, I get the following error, when > trying to connect the sql-server: > > [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. > > > I have copied the 3 files "msbase.jar", "mssqlserver.jar" and "msutil.jar" to > $CATALINA_HOME/common/lib and it seems, that tomcat can find them (as the > error message says) > > Here is the code, that I use to connect to the database: > > -- > > <%@ page language="java" import="javax.sql.DataSource,java.sql.*"%> > <% > > Connection db_con; > Statement db; > > try { > Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); > } catch (ClassNotFoundException e) { > out.println("Der Datenbanktreiber konnte nicht gefunden werden:" + e + > e.getMessage() + "" ); > } > > String con = "jdbc:microsoft:sqlserver://192.168.0.199:1433;User=sa; > Password=bla;DatabaseName=testdb"; > > try { > db_con = DriverManager.getConnection (con); > } catch ( SQLException se ) { > out.println("Exception...(" + se.getMessage() + ")-->"); > } > %> > > -- > > > What do I have to do, to get it working with tomcat ? > > > Thank you very much for your help !!! > > Greetings, > Frank > > -- > Name: Frank von Daak > eMail: [EMAIL PROTECTED] Homepage: http://www.kpage.de > eMail: [EMAIL PROTECTED] Homepage: http://www.linux-dev.de > "If Bill Gates had a nickel for every time Windows crashed... > - oh wait, he does." > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and MsSQL
Hi, maybe, someone of you can help me... I try to port a webapplication from asp to java... First, I have used Websphere for this and everything worked ok, but then I decided to use tomcat4 (both under debian-linux) My problem is the connection to a MSSQL-Database. As JDBC-Driver I'm using the "Microsoft SQL Server 2000 Driver for JDBC", which has an official linux-support. And I cn say, that it is working very well with websphere... When I use the same jsp-files under tomcat, I get the following error, when trying to connect the sql-server: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. I have copied the 3 files "msbase.jar", "mssqlserver.jar" and "msutil.jar" to $CATALINA_HOME/common/lib and it seems, that tomcat can find them (as the error message says) Here is the code, that I use to connect to the database: -- <%@ page language="java" import="javax.sql.DataSource,java.sql.*"%> <% Connection db_con; Statement db; try { Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); } catch (ClassNotFoundException e) { out.println("Der Datenbanktreiber konnte nicht gefunden werden:" + e + e.getMessage() + "" ); } String con = "jdbc:microsoft:sqlserver://192.168.0.199:1433;User=sa; Password=bla;DatabaseName=testdb"; try { db_con = DriverManager.getConnection (con); } catch ( SQLException se ) { out.println("Exception...(" + se.getMessage() + ")-->"); } %> -- What do I have to do, to get it working with tomcat ? Thank you very much for your help !!! Greetings, Frank -- Name: Frank von Daak eMail: [EMAIL PROTECTED] Homepage: http://www.kpage.de eMail: [EMAIL PROTECTED] Homepage: http://www.linux-dev.de "If Bill Gates had a nickel for every time Windows crashed... - oh wait, he does." - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Sundararaman] [Help me]
I would strongly advise against using the Swing timer object. Try using a java.util.Timer object instead. I use this in a servlet to perform automatic daily backups and other automated tasks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)
Eric J. Pinnell wrote: Hi, thanks eric, JK2 should compile with just the following: ./configure --with-apxs2=/path/to/apache/bin/apxs make yes ,it should . but I still can't have this fu... module compiled It should create mod_jk2.so in the build directory tree not in the directory that you ran configure and make from. I forget exactly where it puts it but a find ./ | grep so from the top level of the source should root it out quick fast. yes the location is ../build/jk2/apache2 but allways empty for me (no .so at all) & the find keeps returning nothing for my .so can't spent much time for this problem so I'll use mod_proxy instead Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application working only partially with mod_jk2
Basically: no. The AJP13 protocol (used by mod_jk(2)) currently does not have an 'authorize' state. The request currently must be handled entirely either by Apache or Tomcat. "ToFu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi All, I've got an app that is configured and working with mod_jk2 -- using apache 2.0x and tomcat 4.1.24. It's running fast, and stable. However, I'm having some problems with securing the app. Here's the deal. Security is configured at the application level (i.e. tomcat application) using the configurations in the application specific web.xml file. Works fine going straight to tomcat ( via port 8080). All files are locked down. However, I find that going through Apache, via mod_jk2, only the files that are specified in the workers2.properties are actually being triggered for authentication by the app server. This is fine for the .jsp files or .do (struts) directives that I've got in workers2.properties, but not fine for all the images and videos that I've got behind the secuiryt constraint (or want to, at least). I've changed the workers2.properties file to include the other image and video files types, and this works. This seems klugey though, as I would prefer if apache serves up these files. Does anyone have a better solution to locking down ALL files in a webapp using mod_jk2? Apache authentication won't work for me, as I'm using authentication information within my application. Any ideas would help. Todd # FROM WORKERS2.PROPERTIES # # MEMBERS.MYAPP.COM WORKER [ajp13:chihuahua:8009] channel=channel.socket:chihuahua:8009 [uri:members.myapp.com/*.jsp] worker=ajp13:chihuahua:8009 [uri:members.myapp.com/*.do] worker=ajp13:chihuahua:8009 #[uri:members.myapp.com/*.wmv]# UNCOMMENTED, AND THE APP SECURITY WORKS FOR THESE FILES, OTHERWISE, NOT #worker=ajp13:chihuahua:8009 #[uri:members.myapp.com/*.mpg]# UNCOMMENTED, AND THE APP SECURITY WORKS FOR THESE FILES, OTHERWISE, NOT #worker=ajp13:chihuahua:8009 #[uri:members.myapp.com/*.jpg]# UNCOMMENTED, AND THE APP SECURITY WORKS FOR THESE FILES, OTHERWISE, NOT #worker=ajp13:chihuahua:8009 # FROM WEB.XML FILE # Entire Application /* member BASIC Application Realm member - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk and Tomcat 3.2.4
AFAIK, the latest-and-greatest should still work with 3.2.x. "Armenio Pinto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi there, can anyone tell me, please, where can I find the most suitable version of mod_jk to use with Tomcat 3.2.4? Thanks in advance, Arménio Pinto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: /usr/ucb/cc: language optional software package not installed
Like the message says, you need a working compiler (which on Solaris /usr/ucb/cc definitely isn't ;-). I've never tried it, but I believe that the Forte (or, rather, whatever it is being called these days) complier can be used to build gcc. Otherwise, you are stuck with downloading the binary gcc from sunfreeware or otherwise. "Raj Dasgupta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Whenever I try to run the configure command , I get the following error. I > am loading gcc so I can compile the TomCat connector source. (Sorry, I know > the issue below is not directly Tomcat related) > > sudo ./configure > Configuring for a sparc-sun-solaris2.8 host. > Created "Makefile" in /opt/gcc/gcc-3.3.1 using "mh-frag" > /usr/ucb/cc: language optional software package not installed > *** The command 'cc -o conftest -g conftest.c' failed. > *** You must set the environment variable CC to a working compiler. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Catching JSP Custom tag errors
Yet another one for the FAQ ;-). An error-page element for a status code of 500 won't be invoked if the Servlet/JSP throws an exception out of the service method. For that, you need to have an error-page element with an exception-type, e.g.: java.lang.Exception /Error.jsp "Erez Efrati" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am using Tomcat/Struts and I am trying to catch errors in JSP pages > without luck. It only works if I put the <%page errorPage="/MyError.jsp" > %> tag in the page. I tried to remove it and use the in the > Web.xml but it didn't catch anything. What is wrong here? > > The page which causes the exception (A sample file, the version that > catches and the error redirects to the MyError.page as supposed): > > <%@ page contentType="text/html; charset=windows-1255" %> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ page errorPage="MyError.jsp" %> > > > > hello > > > > > > JBuilder Generated JSP > > > > > > > > > > > THE WEB.XML > > > 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";> > > > action > > org.apache.struts.action.ActionServlet > > config > /WEB-INF/struts-config.xml > > > debug > 2 > > 2 > > > debugjsp > Added to compile JSPs with debug info > org.apache.jasper.servlet.JspServlet > > classdebuginfo > true > > 3 > > > action > *.do > > > debugjsp > *.jsp > > > index.jsp > > > > 500 > /MyError.jsp > > > > /tags/struts-bean > /WEB-INF/struts-bean.tld > > > /tags/struts-bean-el > /WEB-INF/struts-bean-el.tld > > > /tags/struts-html > /WEB-INF/struts-html.tld > > > /tags/struts-html-el > /WEB-INF/struts-html-el.tld > > > /tags/struts-logic > /WEB-INF/struts-logic.tld > > > /tags/struts-logic-el > /WEB-INF/struts-logic-el.tld > > > /tags/struts-nested > /WEB-INF/struts-nested.tld > > > /tags/struts-template > /WEB-INF/struts-template.tld > > > /tags/struts-tiles > /WEB-INF/struts-tiles.tld > > > http://java.sun.com/jstl/core > /WEB-INF/c.tld > > > http://java.sun.com/jstl/core_rt > /WEB-INF/c-rt.tld > > > http://java.sun.com/jstl/fmt > /WEB-INF/fmt.tld > > > http://java.sun.com/jstl/fmt_rt > /WEB-INF/fmt-rt.tld > > > http://java.sun.com/jstl/sql > /WEB-INF/sql.tld > > > http://java.sun.com/jstl/sql_rt > /WEB-INF/sql-rt.tld > > > http://java.sun.com/jstl/xml > /WEB-INF/x.tld > > > http://java.sun.com/jstl/xml_rt > /WEB-INF/x-rt.tld > > > > > Thanks in advance, > Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [File Upload]Multiple Destination ??
Another alternative (depending on your network config, and network policies) is to upload the file once and rsync the uploaded file to the various locations. "Tim Funk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The client (SWING app) will need to perform multiple HTTP requests to post > the file to the multiple servers. Thats the way HTTP works. You can do this > concurrently with multiple threads. (How-to is beyond the scope of this list > and an exercise in using google) > > Otherwise, you can have one server act as master and copy the file to the > other locations but this may bypass some of your business logic. > > -Tim > > Bikash Paul wrote: > > > Hi all friends, > > > > Iam facing problem with Uploading of one file in > > multiple destination means user can select multiple > > remote destination from client interface(swing) and my > > application should send that file in all remote > > destination from local hot folder.For that I have used > > Jlist Box with Multiple selection mode in swing client > > interface.Presently my application is working fine > > with one destination and multiple file.Iam little bit > > confused about the way of proceed Can any one plz > > guide me how I should proceed, I want only logic or > > some suggestion.Iam using Tomcat4.1.24 and servlet. > > > > Thanks & Regards > > Bikash > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 3 and use of sessions
It's much the same as in Tomcat 5: HttpSession session = request.getSession(true); session.setAttribute("foo", "bar"); "Chitale, Sandip V" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Folks, Is there a way in Tomcat 3 , when embedded in an application, to create a HttpSession programatically, populate some session attributes and somehow have a client browser participate in that session (using the right URL for example). Any help will be appreciated. PS: We are stuck with using Tomcat 3 for reasons of supporting JDK1.1. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: First Servlet 404 error
One more nit-pick. As I said earlier, use "/servlet/login" instead of "servlet/com.onjava.login". Then you can turn off the InvokerServlet, which could be used for security exploits. Your current mapping (in your last email) had login /servlet What exactly are you trying to achieve here? This is simply in error. Do you really want "/servlet" to map to your login servlet each and every time? You would not be able to have any other servlets in your application. Perhaps what you are trying to do is have all unauthenticated requests to go to the login servlet? To do this, use a , , and instead. (See Tomcat's admin and manager applications for an example). Then you can map all requests into your web app (the ones you want secured anyway) to your login.jsp that you are working on. I'm not sure if that will fix your welcome.jsp problem; probably not. Try removing the slash like Stuart said, though it should work either way if welcome.jsp is in webapps/onjava/ - Jeff Tulley >>> [EMAIL PROTECTED] 8/29/03 5:36:36 PM >>> Tomcat can usually find JSPs very easily. Is welcome.jsp also in CATALINA_HOME/webapps/onjava/ ? Try the following: private String target = "welcome.jsp"; If 'onjava' is your namespace then this might work. -Original Message- From: Jim Si [mailto:[EMAIL PROTECTED] Sent: 29 August 2003 19:04 To: Tomcat Users List Cc: Stuart MacPherson Subject: Re: First Servlet 404 error Thank you Stuart for your great help. HellowWorld servlet works! But I still have one problem. I got login.jsp in the webapps\onjava directory. It has In login.java, it has private String target = "/welcome.jsp"; ... // Forward the request to the target named ServletContext context = getServletContext(); RequestDispatcher dispatcher = context.getRequestDispatcher(target); dispatcher.forward(request, response); In welcome.jsp, it has very simple return statement. Welcome : <%= request.getAttribute("USER") In webapps\onjava\Web-inf\web.xml, I have login com.onjava.login login /servlet In a browser, I use http://localhost:8080/onjava/login.jsp and I got the login screen, then click on submit button. I got the following error. HTTP Status 404 - /welcome.jsp description The requested resource (/welcome.jsp) is not available. Look like it runs the login class, how do I correct this problem? Thank you. > Also, make sure your HelloWorld servlet is mapped-in in your webapps > deployment descriptor. By the way, the folder should be called WEB-INF not > web-inf. > Windows somehow change WEB-INF to Web-inf automatically. I could not use WEB-INF. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]