Re: installing tomcat 3.2 on windows 98
> is it possible to have tomcat run on windows 98? You can. But, the .bat files never have worked out of the box for Win98. Go here: http://www.geocities.com/jdrudnicki/ Get the small download and use the launcher. Works 99.99% of the time. Jim
Re: Tomcat/Xalan
> has anyone used the xalan-package in their webapps? I am and it's going troublesome. The problem is with the DOM level used by the different xml packages. Tomcat 3.x exposes the interfaces in its xml package to all the webapps. No amount of juggling classpath will change this--whatever Tomcat uses for reading the config files, must also be tolerated by every webapp. DOM1 DOM2 is big problem. Other nasties like W3C interface changes can make life miserable. This is a pain in the ass royale with the v3 classloader scheme. If you want Xalan/Xerces, try to replace the JAXP package used by tomcat (crimson?) and all your webapps can use that package. Tomcat 4 does not impose its dependencies upon webapps. You just put what you need for each webapp in their own libs. ahh Jim
Tomcat and JavaMail API?
We are running Tomcat to serve our mail application. The whole application is made up of html pages and servlets. One of the servlets includes Java mail API. The problem we are facing is - we are not able to see the IMAP data related to incoming mails on the browser. To clarify further, I am able to load the application on the browser, do login etc via simple servlets (In fact other dynamic pages, not requiring Java Mail API, are working fine). But when I click on the inbox link to check mail in the inbox, I just get a blank page. This same thing runs perfeclty OK with Java Webserver. Any suggestions? Thanks in advance... Nimish Vohra.
RE: Threads
hi ; u can use it like that in your server.xml I think this is what u want -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 3:52 AM To: tomcatUser Subject: Threads Hello all wise guys, Could I manange the number of Thread that Tomcat will creat ? Is there an Option in the server.xml (somthing like max_thread) ? when yes, how do I configure this. Greetings, Michael
Re: Threads
Hei, thanks, that was exactly what I mean Greetings, Michael P.S. Exists some doku about this features ? [EMAIL PROTECTED] wrote: > hi ; > > u can use it like that in your server.xml > > > name="handler" > > value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/> > > name="port" > value="8007"/> > name="max_threads" > value="30"/> > name="max_spare_threads" > value="20"/> > name="min_spare_threads" > value="5" /> > > > > I think this is what u want > -Original Message- > From: Wolle [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 3:52 AM > To: tomcatUser > Subject: Threads > > Hello all wise guys, > Could I manange the number of Thread that Tomcat will creat ? > Is there an Option in the server.xml (somthing like max_thread) ? > when yes, how do I configure this. > > Greetings, > Michael -- __ Gruss, Wolle --- [EMAIL PROTECTED]
RE: TC 3.2.2b4 URI Rewriting with mod_ssl
A change very similar to what you propose for HttpServletResponseFacade.java was already made for Tomcat 3.2.2b4. There are two conditions that I know of where URL rewritting won't work. If you using AJP12 and an SSL port other than 443 then Tomcat won't be told that the connection is secure and will think that that the URL scheme is HTTP not HTTPS. HttpServletResponseFacade checks that the scheme of the URL to be encoded and the scheme of the current request are the same. To encode an HTTPS url you must be on an HTTPS request. [Note: I'm sure I really understand this requirement, but its been this way for a long time.] So the two ways I know of for URL rewriting to fail are if you using AJP12 and SSL on something other than 443 or if your encoding an HTTPS URL during an HTTP request. Are either of these true for your case? To help diagnose this, could you access the SnoopServlet that comes with Tomcat via your SSL connection and post the results. This page will indicate whether Tomcat thinks the request is secure or not, and if it thinks the URL scheme is HTTPS. Thanks, we'll get this worked out. > -Original Message- > From: Wolle [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 5:19 AM > To: [EMAIL PROTECTED]; GOMEZ Henri > Subject: Re: TC 3.2.2b4 URI Rewriting with mod_ssl > > > > Hello, > sorry I just wake up ;-) > Wolle wrote: > > > GOMEZ Henri wrote: > > > > > >That is a known Bug ,see > > > >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578 > > > >Marc has said, that he has fixed in the current release > > > >TC3.2.2b4, but it > > > >won't work. > > > >What should I describe now ? The workaround was > > > > > > Fixed by costin in TC 3.3 since 01/04/22 11:56:03 > > > > so I have all these things in TC3.2.2b4, fill it be insert in > TC3.2.2 final ? > > not fill -> new sentence > so I have to do all these things in TC3.2.2b4, will it be > completly insert in > TC3.2.2 final ? > > > > > > > > > > > > > > >1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir. > > > >2.set the TOMCAT_OPTS > > > >=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol > > > >3. Modify the HttpServletResponseFacade.java: > > > >retrieving revision 1.6.2.3 > > > >diff -u -r1.6.2.3 HttpServletResponseFacade.java > > > >--- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java > > > >2001/03/06 17:38:13 1.6.2.3 > > > >+++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java > > > >2001/03/20 13:29:41 > > > >@@ -353,10 +353,14 @@ > > > >return (false); > > > >if (!request.getServerName().equalsIgnoreCase(url.getHost())) > > > >return (false); > > > >-// Set the URL port to HTTP default if not available before > > > >comparing > > > >+// Set the URL port to protocol default if not > > > >available before > > > >comparing > > > > int urlPort = url.getPort(); > > > > if (urlPort == -1) { > > > >-urlPort = 80; > > > >+if("http".equalsIgnoreCase(url.getProtocol())) { > > > >+urlPort = 80; > > > >+} else if > ("https".equalsIgnoreCase(url.getProtocol())) { > > > >+urlPort = 443; > > > >+} > > > > } > > > >if (request.getServerPort() != urlPort) > > > >return (false); > > > > > > That code need to be commited in 3.2.2b4 > > > > only this, or the other two step also ? > > only this, or the other two steps also ? > > > > > > > > > > > > > > > >I have made this with TC3.2.2b2 and TC3.2.2b3, and this works. > > > >Then it doesn't matter if you use the ajp12 or ajp13 Protocol > > > >(I have read that this is important to use ajp13) > > > > > > You need ajp13 to get some SSL web-server vars. > > > > > > >so please help, > > > > > > You provide a patch which may be included in tomcat and must be > > > reviewed by Marc for approval but It seems ok to me and Costin use > > > the same (cvs commit: > jakarta-tomcat/src/facade22/org/apache/tomcat/facade > > > HttpServletResponseFacade.java) > > > > thnaks and this will be the last questions about that problem ;-), > > Greetings Wolle > > thanks and this will be the last questions about that problem ;-), > Greetings Wolle > > ;-) > thanks for inconvenience > Michael
RE: Tomcat 3.2.2 vs 3.2.1
Tomcat is 3.2.2 is a bug fix release (actually one new feature got in, see the readme file). Tomcat 3.x is still Servlet 2.2 and JSP 1.1. -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 3:00 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.2 vs 3.2.1 I just wondered on the benifits of using tomcat 3.2.2 over 3.2.1? I know that 3.2.2 is in beta right now, but what advantages does it give over 3.2.1? Does it simply contain bug fixes (I'm assuming its still the 2.2 spec)? sam
RE: bug - iis tomcat
Are you sure that the request is actually being forwarded to Tomcat and not being served directly by IIS? > -Original Message- > From: thomas marban [werk3AT] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 03, 2001 9:52 AM > To: [EMAIL PROTECTED] > Subject: bug - iis tomcat > Importance: High > > > hi ! > > i've set up tomcat to serve jsp files within iis (redirection) > everything works perfect but if i connect via telnet to iis at port 80 > and try to GET a specific site the server returns the WHOLE jsp code ! > > is this a known problem ? > thanks > > thomas marban > werksleitung > > werk3AT internetmedien oeg > rosenstrasse 1 > 4040 linz > tel. +43 (0) 732 71 65 29 12 > fax. +43 (0) 732 71 65 29 3 > mail-direkt. [EMAIL PROTECTED] > mail-all. [EMAIL PROTECTED] > web. www.werk3.at
RE: Tomcat/Xalan
> The problem is with the DOM level used by the different xml packages. > Tomcat 3.x exposes the interfaces in its xml package to all Tomcat 3.· does not suffer this problemit has a classloading scheme where webapps obtain a clean classloader with only servlet.jar in it.. So is not 3.X is tomcat 3.2.x and down :).. Saludos , Ignacio J. Ortega Saludos , Ignacio J. Ortega > the webapps. No > amount of juggling classpath will change this--whatever > Tomcat uses for > reading the config files, must also be tolerated by every > webapp. DOM1 DOM2 > is big problem. Other nasties like W3C interface changes can > make life > miserable. > > This is a pain in the ass royale with the v3 classloader scheme. > > If you want Xalan/Xerces, try to replace the JAXP package > used by tomcat > (crimson?) and all your webapps can use that package. > > Tomcat 4 does not impose its dependencies upon webapps. You > just put what > you need for each webapp in their own libs. ahh > > Jim > > Saludos , Ignacio J. Ortega
Re: 2nd Posting: Cannot build servletapi 4b3
None, whatsoever. Anthony On Friday 04 May 2001 14:50, you wrote: > Hi, Anthony > > Hardware problem? > > Just a suggestion. > > Regards, > Noel Lecaros > > "Anthony W. Marino" wrote: > > ./build.sh: line 35: 1502 Segmentation fault ${JAVA_HOME}/bin/java > > -classpath ${CLASSPATH} org.apache.tools.ant.Main -buildfile ${BUILDFILE} > > "$@" > > > > Any suggestions? > > > > Thank you, > > Anthony > > > > ---
Tomcat and smb on Linux
Hi all! I have a JSP application running on Tomcat (3.2.1) in a linux box (Redhat 6.2). I want to authenticate users for this application against an NT machine. The linux box is already configured with pam_smb for user authentication with NT. Does anyone know how to configure Tomcat so that it uses the pam_smb to authenticate users? Any other solutions are welcome. Thanks, Joseph
Re: 2nd Posting: Cannot build servletapi 4b3
It's there. Anthony On Friday 04 May 2001 17:25, you wrote: > Do you have jaxp 1.1 on your classpath?? > > anil > > "Noel E. Lecaros" wrote: > > Hi, Anthony > > > > Hardware problem? > > > > Just a suggestion. > > > > Regards, > > Noel Lecaros > > > > "Anthony W. Marino" wrote: > > > ./build.sh: line 35: 1502 Segmentation fault > > > ${JAVA_HOME}/bin/java -classpath ${CLASSPATH} org.apache.tools.ant.Main > > > -buildfile ${BUILDFILE} "$@" > > > > > > Any suggestions? > > > > > > Thank you, > > > Anthony > > > > > > ---
problems with Tomcat 3.2.1 samples
Hi there , i install Tomcat 3.2.1 and i try to run its samples , but it failed. What's wrong or miss in the next steps which i follow : 1 - add to my autoexec.bat : set TOMCAT_HOME=c:\tmct321 set JAVA_HOME=c:\jdk13002 set PATH = %PATH%;c:\;c:\jdk13002\bin;c:\jdk13002; 2 - run the tomcat.bat file : tomcat.bat start 3 - open webapps\examples\servlets\index.html and hit the execute button which fails(all the other examples failed as well) I haven't done any change to the server.xml. Am i using right the tomcat.bat ? should i use the web.xml in any way ? What is wrong here ?!
Re: problems with Tomcat 3.2.1 samples
Hi, Ofer What URL did you type? Did you try: http://localhost:8080/examples/ ? Regards, Noel Lecaros Ofer Baranes wrote: > Hi there , i install Tomcat 3.2.1 and i try to run its samples , but it > failed. > > What's wrong or miss in the next steps which i follow : > > 1 - add to my autoexec.bat : > set TOMCAT_HOME=c:\tmct321 > set JAVA_HOME=c:\jdk13002 > set PATH = > %PATH%;c:\;c:\jdk13002\bin;c:\jdk13002; > 2 - run the tomcat.bat file : >tomcat.bat start > > 3 - open webapps\examples\servlets\index.html and hit the execute button > which fails(all the other examples failed as well) > > I haven't done any change to the server.xml. > Am i using right the tomcat.bat ? should i use the web.xml in any way ? > > What is wrong here ?! > >
AW: grant - codeBase Problem?? - the Answer
Just in case sombody is interested in the answer, i found it. And thanks for never replying to my messages (3 of them) -Ursprüngliche Nachricht- Von: Daniel Strobl [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 3. Mai 2001 17:33 An: [EMAIL PROTECTED] Betreff: grant - codeBase Problem?? I use tomcat with security. And I want to assign FilePermissions on different directories for different users /home/user1 /home/user2. Each user should have permission to write his own directory. Unfortunally it seems that the codeBase part of an grant section does not work. If I granted FilePermission to a directory without codeBase set it works. With codeBase set it does not work. Is there anything to know about how Tomcat needs grant entries or did I miss to configure something? If you need my policy file I will post it. Thanks for your help Daniel
2nd Post: ContentType Is Always Null
Redhat 7 with kernel 2.42; TomCat/ServletApi 4 Build2001-05-04) - please note that I've also tried this on TC4b1 as well as TC4b3 in standalone mode with all exhibiting the same results. The following request url (as well as all other valid urls) always returns null for contentType: http://localhost:8080/xyz/servlet/ViewResource/index.html *** Some code within doGet method ** // Get the resource to view URL url = null; try { url = getServletContext().getResource(req.getPathInfo()); } catch (IOException e) { return; } // Connect to the resource URLConnection con = url.openConnection(); con.connect(); // con.getURL() returns jndi:/localhost/xyz/index.html // Get and set the type of the resource String contentType = con.getContentType(); // This returns null res.setContentType(contentType); *** Any suggestions? Thank You, Anthony
Re: Tomcat & IIS
I have actually done this. And that works fine. The problem is that I cannot have jsp files in the wwwroot directory that I have IIS pointed at. The redirect works fine... I have the samples loading up and everything. Any further help would be appreciated. Thanks again, Keith Original Message Follows From: Allan Kamau <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tomcat & IIS Date: Sat, 5 May 2001 02:43:54 -0700 (PDT) Hi Willis and others installing tomcat and IIS You will need to configure IIS and install a filter that will forward requests to Tomcat. I don't remember the exact steps.The how to docs in Tomcat/docs directory provide detailed explanations on the same. Basically you will need to visit the tomcat download page, move into the win32/ directory and download files from there, you will end up using only one of the dlls included here. Extract the dll (from it's zip format) and copy it to a directory .. you will get more information from the docs. You will need to create a vitual directory in the site(s) you have created in your IIS. At the end. You should be able to run your .asp and .htm[l] files with IIS handling those and your servlets and .jsp files being handled by Tomcat. You can even access servlets in the contexts you've defined. Allan Kamau. --- Keith Willis <[EMAIL PROTECTED]> wrote: > I am trying to run Tomcat and IIS together. > > I would like to put ASP and JSP files in the same > directory. > > I tried changing the directory in IIS to point to > the Root directory of > Tomcat, but it would not run the JSP in that folder > then. > > Is there a way to do this? (Basically I want all my > files in the same set of > directories rather than ASP in one set and JSP in > another) > > Thanks, > > Keith > _ > Get your FREE download of MSN Explorer at > http://explorer.msn.com > __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Win32 tomcat mod_jk Installation
Hi All, My development evironment is Windows 2000. I installed the latest Windows Apache binary, PHP binary, and Tomcat 3.2.1, but I can't get mod_jk to work. Apache/1.3.19 (Win32) mod_jk PHP/4.0.5 running... When I start up tomcat with /bin/startup, here are the messages I receive: 2001-05-06 10:05:47 - ContextManager: Adding context Ctx( /examples 2001-05-06 10:05:47 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-05-06 10:05:47 - ContextManager: Adding context Ctx( ) 2001-05-06 10:05:47 - ContextManager: Adding context Ctx( /test ) 2001-05-06 10:05:47 - PoolTcpConnector: Starting HttpConnectionHand FATAL:java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.(ServerSocket.java:170) at java.net.ServerSocket.(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createS ServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint( nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcp a:188) at org.apache.tomcat.core.ContextManager.start(ContextManag at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) After start up, Tomcat works fine via http://localhost:8080/examples/jsp/, but not via http://localhost/examples/jsp/. A copy of this message and my config files can be found at: http://students.washington.edu/ctaggart/tomcat/ Config Files (I've ammended .txt entensions for easy viewing.) c:\jakarta-tomcat-3.2.1\conf\server.xml c:\jakarta-tomcat-3.2.1\conf\workers.properties c:\jakarta-tomcat-3.2.1\conf\mod_jk.conf c:\program files\apache group\apache\conf\httpd.conf Cameron Taggart Senior, University of Washington Business Administration, Information Systems [EMAIL PROTECTED]
AW: tomcat on IIS in-process
Hi, I have the same message in my log file. I tried some things an looked at the source code. I found out that tomcat trys to load the library from different locations. If it doesn't find it in the first one the error-message is logged into the std-err file. But if the file is in the second location everything is right. So I think: If your tomcat runs correctly this is not an error you should worry about. best regards, robert -Ursprüngliche Nachricht- Von: Rasmus Munk Jensen [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 05. Mai 2001 18:03 An: Tomcat (E-mail) Betreff: tomcat on IIS in-process Hi I am trying to set up IIS to work with tomcat 3.2.0 using the jni_connect.dll, so that it can run in-process. But when I start the IIS, I get the following text in the stderr-log file from the JVM: 2001-05-05 05:57:52 - ContextManager: Adding context Ctx( /examples ) 2001-05-05 05:57:52 - ContextManager: Adding context Ctx( /admin ) 2001-05-05 05:57:53 - ContextManager: Adding context Ctx( ) 2001-05-05 05:57:53 - ContextManager: Adding context Ctx( /test ) Failed to loadLibrary() c:/jakarta-tomcat/bin/jni_connect.dll But in the stdout-log file everything looks fine: Starting up StartupThread Starting tomcat. Check logs/tomcat.log for error messages Library c:/jakarta-tomcat/bin/jni_connect.dll loaded Running ... End waiting Running fine I have followed the setup instructions for in-process exactly... any ideas? -thanks, Rasmus
Re: TC 3.2.2b4 URI Rewriting with mod_ssl
Hello, I have found out, how it will works. The code is insert in the TC beta4 Code, but you still have to insert the jnet.jar and jsse.jar file in th TC/lib dir. You have also set the TOMCAT_OPTS like below and then URI-Rewriting with mod_ssl works... have a nice day, Michael GOMEZ Henri wrote: > >That is a known Bug ,see > >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578 > >Marc has said, that he has fixed in the current release > >TC3.2.2b4, but it > >won't work. > >What should I describe now ? The workaround was > > Fixed by costin in TC 3.3 since 01/04/22 11:56:03 > > >1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir. > >2.set the TOMCAT_OPTS > >=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol > >3. Modify the HttpServletResponseFacade.java: > >retrieving revision 1.6.2.3 > >diff -u -r1.6.2.3 HttpServletResponseFacade.java > >--- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java > >2001/03/06 17:38:13 1.6.2.3 > >+++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java > >2001/03/20 13:29:41 > >@@ -353,10 +353,14 @@ > >return (false); > >if (!request.getServerName().equalsIgnoreCase(url.getHost())) > >return (false); > >-// Set the URL port to HTTP default if not available before > >comparing > >+// Set the URL port to protocol default if not > >available before > >comparing > > int urlPort = url.getPort(); > > if (urlPort == -1) { > >-urlPort = 80; > >+if("http".equalsIgnoreCase(url.getProtocol())) { > >+urlPort = 80; > >+} else if ("https".equalsIgnoreCase(url.getProtocol())) { > >+urlPort = 443; > >+} > > } > >if (request.getServerPort() != urlPort) > >return (false); > > That code need to be commited in 3.2.2b4 > > >I have made this with TC3.2.2b2 and TC3.2.2b3, and this works. > >Then it doesn't matter if you use the ajp12 or ajp13 Protocol > >(I have read that this is important to use ajp13) > > You need ajp13 to get some SSL web-server vars. > > >so please help, > > You provide a patch which may be included in tomcat and must be > reviewed by Marc for approval but It seems ok to me and Costin use > the same (cvs commit: jakarta-tomcat/src/facade22/org/apache/tomcat/facade > HttpServletResponseFacade.java)
Roles & Tomcat
Sorry if this is a repost, I'm having trouble with mail Hi, I'm observing some unexpected behaviour in Tomcat (3.2.1) in conjuction with roles. This is the situation: (web.xml is at the bottom) two roles: Customer Gold Customer a user: Joe Bloggs Joe is a "Customer" but not a "Gold Customer" This is what I observe: 1) new browser (not logged in) browse to /control/CustomerSecurePage 2) browser is redirected to /login.jsp 3) Joe logs in and is redirected to /control/CustomerSecurePage 4) browse to /control/GoldSecurePage 5) browser redirected to /control/loginerror 6) Joe is now logged out, any subsequent attempts to browse to a page secured by the "customer" role results in a redirection to the login page. Is this correct behaviour? I would have expected an attempt to access to the gold url to have denied access but not to have logged the user out! Any thoughts? Thanks in advance, Nathan this is the relevant section of web.xml: MySecureBit0 no description /control/GoldSecurePage GET POST no description gold MySecureBit1 no description /control/CustomerSecurePage GET POST no description customer FORM TheGiftStore /login.jsp /control/loginerror the customer role customer the gold customer role gold
Re: JAVA vs. PERL startup time + memory
Choose whichever language you want and don't worry. Apache will spawn only one CustomLog process for all log records. It will only start a new process if the pipe hangs or the log process dies. It would be ridiculously inefficient if Apache spawned a new process to log each record. -James On Sat, May 05, 2001 at 06:07:52PM -0700, tim leung wrote: > My problem is I must use unix pipe. > e.g. command1 | command2 > > where command1 is some unix command. > where command2 is "java PipeReader" > > that is output of command1 sent to input of java > application -- PipeReader. > > why I must use pipe? > because I am using apache web server. apache server > will do logging to a text file. instead of log to > text file. I can also log to a pipe : > > // apache server log to a pipe instead of log file > e.g. CustomLog "|java -classpath /opt pipe" common > > I pipe the log's (byte sent) / sessionID etc... > to the application and the application will HTTP POST > the log back to servlet for further processing. > > the suggestion of unix pipe to a running process > (daemon) is what I really want to do but i dont' think > there is a way to do it. inorder to pipe the > command1's Output to java app PipeReader's Input > (stdin). I must invoke a new JVM process inorder to > do pipe. right? > > any one can help me out? > thanks. > > --- Ross Dyson <[EMAIL PROTECTED]> wrote: > > The JVM is loaded just ONCE not once pre request. > > > > This is WHY java back-ends have better performance > > and are scalable. > > > > -Original Message- > > From: tim leung [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, 6 May 2001 4:39 AM > > To: [EMAIL PROTECTED] > > Subject: JAVA vs. PERL startup time + memory > > > > > > Hi, > > I am thinking of write an unix app that will get > > data > > from a pipe e.g. | and then will do a HTTP > > POST to some server. > > > > e.g. command1 | java PipeReader-- OR -- > > e.g. command1 | perl PipeReader > > > > Assume I need to invoke the JVM process or PERL > > process very frequently ( 5 times / sec ) --> ( 300 > > times / min ) > > > > I know that Java's startup time is slow. and it > > allocation a block of per-defined memory when it > > starts up. like 2MB. although it may only > > use 300KB. so. I think start a JVM process is SLOW > > and need lots of > > memory. > > > > I am not very familiar with PERL. I wonder if I > > invoke > > 300 PERL process / min, is it faster and use less > > memory than invoke 300 JVM process / min? > > > > Both will do the same thing.--> each time it's' > > invoked, it will do a HTTP POST of some data get > > from > > the pipe ( stdin ) and then System.exit(). > > > > thanks. > > > > __ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > > prices > > http://auctions.yahoo.com/ > > > __ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/
Linux Startscript
Hello, why is there no startscipt integrated in TC ? The server should normals run when the server is on. If you don't use the mod_jk.conf-auto, it doesn't matter if apache start bevor or after tomcat. Here is a simple Linux start/stop script to insert in /etc/rc.d/init.d #!/bin/sh # description: Start Tomcat 3.2.2b4 for Apache case "$1" in 'start') /usr/local/jakarta-tomcat-3.2.2b4/bin/startup.sh touch /var/lock/subsys/tomcat ;; 'stop') /usr/local/jakarta-tomcat-3.2.2b4/bin/shutdown.sh rm -f /var/lock/subsys/tomcat ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0 -- Greetings, Michael
RE: tomcat on IIS in-process
Hi, I greatly appreciate your answer. Unfortunatly my tomcat doesn't run, but maybe you could answer a few questions for me, so that I can isolate the problem? 1. In my workers.properties I have the following line in my JNI definition: worker.jni.class_path=c:\jakarta-tomcat\classes this points to nowhere!! Is that correct? In my uriworkermap.properties file, I have only the jni worker mounted, not ajp12 or ajp13. Is this correct? Am I right, when I assume that having tomcat running in-process, automatically starts tomcat when the IIS is started? thanks for your time, Rasmus -Original Message- From: Robert Wohlgemuth [mailto:[EMAIL PROTECTED]] Sent: 6. maj 2001 19:46 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: AW: tomcat on IIS in-process Hi, I have the same message in my log file. I tried some things an looked at the source code. I found out that tomcat trys to load the library from different locations. If it doesn't find it in the first one the error-message is logged into the std-err file. But if the file is in the second location everything is right. So I think: If your tomcat runs correctly this is not an error you should worry about. best regards, robert -Ursprüngliche Nachricht- Von: Rasmus Munk Jensen [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 05. Mai 2001 18:03 An: Tomcat (E-mail) Betreff: tomcat on IIS in-process Hi I am trying to set up IIS to work with tomcat 3.2.0 using the jni_connect.dll, so that it can run in-process. But when I start the IIS, I get the following text in the stderr-log file from the JVM: 2001-05-05 05:57:52 - ContextManager: Adding context Ctx( /examples ) 2001-05-05 05:57:52 - ContextManager: Adding context Ctx( /admin ) 2001-05-05 05:57:53 - ContextManager: Adding context Ctx( ) 2001-05-05 05:57:53 - ContextManager: Adding context Ctx( /test ) Failed to loadLibrary() c:/jakarta-tomcat/bin/jni_connect.dll But in the stdout-log file everything looks fine: Starting up StartupThread Starting tomcat. Check logs/tomcat.log for error messages Library c:/jakarta-tomcat/bin/jni_connect.dll loaded Running ... End waiting Running fine I have followed the setup instructions for in-process exactly... any ideas? -thanks, Rasmus
AW: tomcat on IIS in-process
Hi, In the workers.properties the worker.jni.class_path points also to the classes directory. It doesn't exist at my computer too. But the class_path also points to each *.jar file in the lib directory and to the tools.jar in my jdk1.3/lib directory. In the uriworkermap.properties file I've benn also mounted only the jni worker. I had also some problems setting up tomcat in-process with IIS. The error was in the registry, becaus I had an typo in the settings there. Perhaps you look there: HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0 -Ursprüngliche Nachricht- Von: Rasmus Munk Jensen [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 06. Mai 2001 20:56 An: [EMAIL PROTECTED] Betreff: RE: tomcat on IIS in-process Hi, I greatly appreciate your answer. Unfortunatly my tomcat doesn't run, but maybe you could answer a few questions for me, so that I can isolate the problem? 1. In my workers.properties I have the following line in my JNI definition: worker.jni.class_path=c:\jakarta-tomcat\classes this points to nowhere!! Is that correct? In my uriworkermap.properties file, I have only the jni worker mounted, not ajp12 or ajp13. Is this correct? Am I right, when I assume that having tomcat running in-process, automatically starts tomcat when the IIS is started? thanks for your time, Rasmus -Original Message- From: Robert Wohlgemuth [mailto:[EMAIL PROTECTED]] Sent: 6. maj 2001 19:46 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: AW: tomcat on IIS in-process Hi, I have the same message in my log file. I tried some things an looked at the source code. I found out that tomcat trys to load the library from different locations. If it doesn't find it in the first one the error-message is logged into the std-err file. But if the file is in the second location everything is right. So I think: If your tomcat runs correctly this is not an error you should worry about. best regards, robert -Ursprüngliche Nachricht- Von: Rasmus Munk Jensen [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 05. Mai 2001 18:03 An: Tomcat (E-mail) Betreff: tomcat on IIS in-process Hi I am trying to set up IIS to work with tomcat 3.2.0 using the jni_connect.dll, so that it can run in-process. But when I start the IIS, I get the following text in the stderr-log file from the JVM: 2001-05-05 05:57:52 - ContextManager: Adding context Ctx( /examples ) 2001-05-05 05:57:52 - ContextManager: Adding context Ctx( /admin ) 2001-05-05 05:57:53 - ContextManager: Adding context Ctx( ) 2001-05-05 05:57:53 - ContextManager: Adding context Ctx( /test ) Failed to loadLibrary() c:/jakarta-tomcat/bin/jni_connect.dll But in the stdout-log file everything looks fine: Starting up StartupThread Starting tomcat. Check logs/tomcat.log for error messages Library c:/jakarta-tomcat/bin/jni_connect.dll loaded Running ... End waiting Running fine I have followed the setup instructions for in-process exactly... any ideas? -thanks, Rasmus
Re: 2nd Post: ContentType Is Always Null
"con.getContentType()" doesn't work for me, however, "getServletContext().getMimeType(req.getPathTranslated())" does. Any explanations and/or if you could point me in the direction to a resource would be appreciated. Thank You, Anthony On Sunday 06 May 2001 11:41, you wrote: > Redhat 7 with kernel 2.42; TomCat/ServletApi 4 Build2001-05-04) - please > note that I've also tried this on TC4b1 as well as TC4b3 in standalone mode > with all exhibiting the same results. > > The following request url (as well as all other valid urls) always returns > null for contentType: >http://localhost:8080/xyz/servlet/ViewResource/index.html > > *** Some code within doGet method ** > > // Get the resource to view > URL url = null; > try { > url = getServletContext().getResource(req.getPathInfo()); > } > catch (IOException e) { > > return; > } > > // Connect to the resource > URLConnection con = url.openConnection(); > con.connect(); > // con.getURL() returns jndi:/localhost/xyz/index.html > > // Get and set the type of the resource > String contentType = con.getContentType(); // This returns null > res.setContentType(contentType); > > *** > > Any suggestions? > > Thank You, > Anthony
Tomcat/Apache Help!
Ok... I'm forgetting something... or doing something really stupid... but I can't, for the life of me, figure out what's going on here. I have Tomcat 3.2.1 set up with mod_jk.so so that Apache handles the HTTP requests. That works: I call /mysite/index.html, and apache handles the request. I call /mysite/login.jsp, and the JSP comes up. Here's the problem: I've installed a package (jive, if it matters) that uses .css style sheets. Requests for the style sheet(s) are handled by Apache, and it looks for the .css file in the htdoc root instead of in the /usr/local/tomcat/webapps/mysite heirarchy. I can see the errors coming out in my apache log (same problem with gifs, etc.) *what* am I missing? Is there an XML setting? I've looked at the settings in the mod_jk.conf-auto for saying "these kinds of file requests" should be handled by Tomcat: # # Root context mounts for Tomcat # JkMount /*.jsp ajp12 JkMount /servlet/* ajp12 But I want .css's for .html files to be handled correctly, also... What am I missing? Cheers, Eric _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Help with starting Tomcat
Hello. Using Tomcat 3.2.1. I've set the environment variable for TOMCAT_HOME (I think), but I'm not sure how to set the environment variable for JAVA_HOME. My jdk's root directory is installed at the following directory on my W98SE platform: c:\jdk1.3.0_02. Therefore, this is what I did to set the JAVA_HOME environment variable. At the DOS c:\ prompt, I typed: "c:\set JAVA_HOME=jdk1.3.0_02" then pressed enter. Then, when I go to execute "startup.bat" in the tomcat\bin directory, I get the message "invalid command or file". But, when I'm in Windows Exployer and double-click on startup.bat, I get a DOS window message: "You must set JAVA_HOME to point at your Java Development Kit installation". Any help with this is greatly appreciated.
Re: Help with starting Tomcat
To set the JAVA_HOME golbally you should put the set in the autoexec.bat file. Or you could do it in the command prompt as yopu were tring to do. Except add the 'c:\' set JAVA_HOME=c:\jdk1.3.0_02 And then to run the bat file from the command prompt just type startup - no '.bat' Good luck, ss - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 06, 2001 2:42 PM Subject: Help with starting Tomcat Hello. Using Tomcat 3.2.1. I've set the environment variable for TOMCAT_HOME (I think), but I'm not sure how to set the environment variable for JAVA_HOME. My jdk's root directory is installed at the following directory on my W98SE platform: c:\jdk1.3.0_02. Therefore, this is what I did to set the JAVA_HOME environment variable. At the DOS c:\ prompt, I typed: "c:\set JAVA_HOME=jdk1.3.0_02" then pressed enter. Then, when I go to execute "startup.bat" in the tomcat\bin directory, I get the message "invalid command or file". But, when I'm in Windows Exployer and double-click on startup.bat, I get a DOS window message: "You must set JAVA_HOME to point at your Java Development Kit installation". Any help with this is greatly appreciated.
Re: destroy/init sequence
>From: Michael Bergknoff <[EMAIL PROTECTED]> >Does the container maintain session state across >a destroy/init sequence? If so is it up to each >servlet to serialize or delete any objects stored >in the session? For debugging, is it possible to >control when the destroy method is called? > >Thanks, >Mike >[...] Hi :-) I am not sure: - IMHO, I think HttpSession doesn't has much relation with one special MyServlet, session is "of" webapps/container(not this webapp or that...), i.e., session is cross-webapp, so session is loaded by another classloader which is different from the webapp classloader which loads MyServlet. so even if the old webapp classloader is destroyed/GCed, the session object and its Class object and its classloader are still there. - it seems that the following "events" are Not always "together": % MyServlet is loaded by webapp classloader % and 1/n instance(s) is/are made % init method is called by container % destroy method is called by container % 1/n instance(s) is/are destroyed/GCed % another 1/n instance(s) is/are made again % old webapp classloader is destroyed/GCed % new webapp classloader is made again % ... i.e. I guess it is possible that: destroy method is called, but the old instance of MyServlet is still there(and/or the old webapp classloader is still there). - so if we are sure that all the objects which are put into session by us are Not loaded by webapp classloader, I think we can be sure that we don't need to consider the init/destroy issue, if they are loaded by webapp classloader, And at the same time when init/destroy is being called, the old webapp classloader is destroyed/GCed and a new one is made, perhaps we will meet some problem, for xample, ClassCastException or other... - perhaps it is better to make all the following serialized: % the objects which are put into HttpSession % the objects which are put into ServletContext Bo May.06, 2001 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: Loosing Connections in a pool
Have you tried running your application for a long time without Tomcat? That is, are you sure the problem is Tomcat related. Specifically, we found the the Oracle JDBC drivers have a memory leak such that if you don't explicitly close the Statements the connection will keep a reference to them and allocate more and more memory. --Rainer > -Original Message- > From: Dan Randall [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 05, 2001 3:32 AM > To: [EMAIL PROTECTED] > Subject: Loosing Connections in a pool > > > Hi, > > My tomcat application runs in a production environment for about > 24 hours before it fails and must be restarted. During that time > JDBC connections to Oracle become ignored and eventually > disappear. A fair guess is that I am loosing memory, threads and > resources in general until there is nothing left and only a > restart cures the matter. > > Unfortunately, tomcat, rather than apache is serving much of the > pages and graphics. That may be a contributing factor? > > I am using: > > Solaris 8 > Oracle 8.1.7 > tomcat 3.2.1 > apache 1.3.19 > and Java 1.3 > > Does anyone have an idea of what sort of problems I might be > having? Any known resource leaks or threading issues? > > Thanks!! > > Dan >
RE: Loosing Connections in a pool
Rainer is right, your code should look like this Connection con = null; Statement stmt = null; ResultSet rs = null; try { con = getConnection(); stmt = con.createStatement(); //execute your query and parse the result set }finally { //clean up resources - always! if ( rs != null ) try{ rs.close() }catch (Exception ignore){} if ( stmt != null ) try{ stmt.close()}catch (Exception ignore){} if ( con != null ) try{ con.close() }catch (Exception ignore){} //assuming con.close returns the connection to the pool. } if your code, doesn't have a finally, now is probably a good time to start using it to ensure that your code cleans up after itself. Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net > -Original Message- > From: Rainer Mager [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 4:16 PM > To: [EMAIL PROTECTED] > Subject: RE: Loosing Connections in a pool > > > Have you tried running your application for a long time without > Tomcat? That > is, are you sure the problem is Tomcat related. Specifically, we found the > the Oracle JDBC drivers have a memory leak such that if you don't > explicitly > close the Statements the connection will keep a reference to them and > allocate more and more memory. > > > --Rainer > > > > -Original Message- > > From: Dan Randall [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, May 05, 2001 3:32 AM > > To: [EMAIL PROTECTED] > > Subject: Loosing Connections in a pool > > > > > > Hi, > > > > My tomcat application runs in a production environment for about > > 24 hours before it fails and must be restarted. During that time > > JDBC connections to Oracle become ignored and eventually > > disappear. A fair guess is that I am loosing memory, threads and > > resources in general until there is nothing left and only a > > restart cures the matter. > > > > Unfortunately, tomcat, rather than apache is serving much of the > > pages and graphics. That may be a contributing factor? > > > > I am using: > > > > Solaris 8 > > Oracle 8.1.7 > > tomcat 3.2.1 > > apache 1.3.19 > > and Java 1.3 > > > > Does anyone have an idea of what sort of problems I might be > > having? Any known resource leaks or threading issues? > > > > Thanks!! > > > > Dan > > > >
Tomcat configuration issues
Hi, Im running Tomcat(v3.1) and Apache(v1.3) - im having some weird config things happening. In the Apache config file, i set up directory permissions and switch off indexing, but when Tomcat loads, it seems to wipe out these settings and creates a massive security hole! Is this normal behaviour for Tomcat? Can i tweak a configuration to make it handle these permissions correctly. Im guessing that the problem is in the apache-tomcat config file which ive included below. If anyone has any ideas on what has happened, it would be really, really helpful. thanks! Craig tomcat-apache.conf -- LoadModule jserv_module modules/ApacheModuleJServ.dll ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 8007 ApJServMount / /ROOT AllowOverride None deny from all ApJServMount /servlet /ROOT
Re: Help with starting Tomcat
Hi: Try this: set JAVA_HOME in the tomcat.bat file, not start.bat. Add the line set JAVA_HOME = path\to\your\jdk Add it immediately below the last of the "rem"'d statements so it's not caught in some subroutine. save your changes to tomcat.bat, and then double click start.bat. that should do the trick, but as always, YMMV. good luck, Michael Tiffany Hello. Using Tomcat 3.2.1. I've set the environment variable for TOMCAT_HOME (I think), but I'm not sure how to set the environment variable for JAVA_HOME. My jdk's root directory is installed at the following directory on my W98SE platform: c:\jdk1.3.0_02. Therefore, this is what I did to set the JAVA_HOME environment variable. At the DOS c:\ prompt, I typed: "c:\set JAVA_HOME=jdk1.3.0_02" then pressed enter. Then, when I go to execute "startup.bat" in the tomcat\bin directory, I get the message "invalid command or file". But, when I'm in Windows Exployer and double-click on startup.bat, I get a DOS window message: "You must set JAVA_HOME to point at your Java Development Kit installation". Any help with this is greatly appreciated.
3.2.1 + FORM Auth + POST data
Greetings, Does anyone know why Tomcat does not store the POST parameters when launching j_security_check? I suppose it is because the 2.2 spec says: "The URL path which triggered the authentication is stored by the container." Just the URL? Where are the POST data gone? (GET works ok, of course). Thanks for your attention
Re: log4j and tomcat
Hello there! I was wondering if anybody could help with a tomcat and log4j problem? I have placed my log4j.properties file into my WEB-INF/classes direcotry but it seems that Tomcat is not picking it up! This is the line in my code in my .java file taht tells me what .properties file to look for PropertyConfigurator.configure("log4j.properties"); If I put in the full path to the .properties file, it still does not seem to find it! It tells me the following the error message: (but the application in the browser works fine log4j:ERROR Could not read configuration file [log4j.properties]. java.io.FileNotFoundException: log4j.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:64) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:289) at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:308) at security.security.(security.java:32) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at java.beans.Beans.instantiate(Beans.java:207) at java.beans.Beans.instantiate(Beans.java:51) at jason.security._0002fjason_0002fsecurity_0002flogin_0005fhandler_0002ejsplogin_0005fhandler_jsp_0._jspService(_0002fjason_0002fsecurity_0002flogin_0005fhandler_0002ejsplogin_0005fhandler_jsp_0.java:68) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) log4j:ERROR Ignoring configuration file [log4j.properties]. any help is appreciated! Jason --- Anuj Agrawal <[EMAIL PROTECTED]> wrote: > Yes it can. > > You might want to consider creating a > log4j.properties file to hold your log4j > configuration. Have that file in your > WEB-INF/classes dir and tomcat would > automatically pick it up. > > HTH. > Anuj. > > teh j wrote: > > > I have recently started playing with log4j. Does > > anybody know if it can be used with Tomcat? > > I have a a JSP app running on tomcat that has > several > > beans and classes and was wondering if I could use > > log4j as a logging tool > _ http://store.yahoo.com.au - Yahoo! Store - It's time you had your business online!
My growing memory problem resolved
Hello , i have posted for a few day's a problem thats the Memory usage will extremly grow up when I refresh a page very often The Problem was, that I creat a "heavy memory" Object on each refresh. Normally I have 81 processes run at all, when execute the "stress-test" the processcount will rise till ~ 230. And each new Prcoesses will creat a new Object. When I stop the stress-test, the processcount becomes normal (~ 100) , but the memory usage won't fall. But the new created Object have now refernces that points to them. But why they don't becomes free My code is somthing like this: public class servlet1 extends HttpServlet{ .. ... .. .. public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException{ try{ HeavyObject ho = new HeavyObject(); } finally{ ho = null; // for testing implementet, but this gives the memory not free, also } } } Is this a Bug in Tomcat ? Or is it a Bug from me ? Or som Java misunderstood ? Why will the Object not becomes free, when some of the Threads will be closed , and the only reference is in the closed Thread ? Greetings, Michael
"Unsafe path..." - What is Tomcat trying to tell me?
I am trying to run Cocoon 1.8.2 with Tomcat 3.2.1 on Win95. During Cocoon initialization a null pointer exception is thrown and Tomcat issues the following message: 2001-05-03 03:52:02 - Ctx( /cocoon ): Unsafe path C:\jakarta-tomcat-3.2.1\webapps\cocoon \Web-inf\cocoon.properties It appears that Tomcat will not let Cocoon get at its' properties file. I tried mucking around with the Tomcat policy file but nothing I tried made any difference. Any help with this would be appreciated. Thanks in advance, --beeky
Re: mod_ssl breaks response.encodeURL()? !SOLUTION!
Hello, in the TC3.2.2b4 version you don't have to patch the HttpServletResponseFacade.java, it's already implemented you must only do this: 1. copy jnet.jar and jsse.jar in your TC/lib dir 2. set TOMCAT_OPTS=-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol Greetings, Michael Jeff Kilbride wrote: > Has this fix been added to 3.2.2? I seem to remember seeing that it had > been. > > Thanks, > --jeff > > - Original Message - > From: "Mark Johnson" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, April 24, 2001 3:50 PM > Subject: Re: mod_ssl breaks response.encodeURL()? !SOLUTION! > > > Thanks to a tip from [EMAIL PROTECTED], I've got this working on > Tomcat > > 3.2.1 with gnu/linux+apache+mod_ssl. > > > > Here's HOWTO: > > 1. Get jsse-1.0.2-do.zip and unpack. In lib/ are three jars. Put 'em in > your > > CLASSPATH. > > 2. Patch: > > > $JAKARTA_HOME/jakarta-tomcat/src/share/org/apache/tomcat/facade/HttpServletR > esponseFacade.java > > > > with: > > > > return (false); > > if (!request.getServerName().equalsIgnoreCase(url.getHost())) > > return (false); > > -// Set the URL port to HTTP default if not available before > > comparing > > +// Set the URL port to protocol default if not available before > > comparing > > int urlPort = url.getPort(); > > if (urlPort == -1) { > > -urlPort = 80; > > +if("http".equalsIgnoreCase(url.getProtocol())) { > > +urlPort = 80; > > +} else if ("https".equalsIgnoreCase(url.getProtocol())) { > > +urlPort = 443; > > +} > > } > > > > 3. compile the class file to > > > $TOMCAT_HOME/classes/org/apache/tomcat/facade/HttpServletResponseFacade.clas > s > > > > 4. Done! > > > > Mark Johnson wrote: > > > > > My app uses the HttpSession interface. In order to handle client > > > browsers which don't accept cookies, I used the > > > response.encodeURL("myURL") method. > > > > > > Using apache without mod_ssl, and using a browser set to deny cookies, I > > > detect the method in action when the jsessionid is appended to the > > > URL's. Everything is dandy! > > > > > > However, when I run apache with mod_ssl, it is as if the method has not > > > been invoked. > > > > > > I speculate that this effect is related to mod_ssl's use of another > > > port, 443. Perhaps response.encodeURL("myURL") only works on the port > > > number in httpd.conf's Port directive. > > > > > > Can anyone explain what's going on? Better yet, how do I solve the > > > problem? > > > > > > TIA > > -- __ Gruss, Wolle --- [EMAIL PROTECTED]
Re: problems with Tomcat 3.2.1 samples
Hi, I'm not familiar w/ the configuration also. http://localhost:8080/examples/ does not work for me. Is it my config problem? But I try this and works: http://localhost:8080/examples/servlet/CookieExample this is to call the \web-apps\examples\web-inf\classes\CookieExample.class Is it correct to say that we hv to put the java classes under the web-inf\classes? pls let me know if I'm on the right track. thanks, jackling. - Original Message - 寄件者: "Noel E. Lecaros" <[EMAIL PROTECTED]> 收件者: <[EMAIL PROTECTED]> 傳送日期: 2001年5月6日 PM 11:19 主旨: Re: problems with Tomcat 3.2.1 samples > Hi, Ofer > > What URL did you type? Did you try: http://localhost:8080/examples/ ? > > Regards, > Noel Lecaros > > Ofer Baranes wrote: > > > Hi there , i install Tomcat 3.2.1 and i try to run its samples , but it > > failed. > > > > What's wrong or miss in the next steps which i follow : > > > > 1 - add to my autoexec.bat : > > set TOMCAT_HOME=c:\tmct321 > > set JAVA_HOME=c:\jdk13002 > > set PATH = > > %PATH%;c:\;c:\jdk13002\bin;c:\jdk13002; > > 2 - run the tomcat.bat file : > >tomcat.bat start > > > > 3 - open webapps\examples\servlets\index.html and hit the execute button > > which fails(all the other examples failed as well) > > > > I haven't done any change to the server.xml. > > Am i using right the tomcat.bat ? should i use the web.xml in any way ? > > > > What is wrong here ?! > > > > >
JNDI Datasource in Tomcat
Hi I try to use JNDI to get datasource in tomcat. How can I config a jndi datasource in tomcat so i can get datasource as follow code? Thanks Harden === public AttributeDAO(String dataSource) throws AttributeDAOException { try { InitialContext ic = new InitialContext(); datasource = (DataSource) ic.lookup(dataSource); } catch (NamingException ne) { throw new AttributeDAOException("NamingException while looking " + "up DB context : " + ne.getMessage()); } }
petstore problem
Hi, I have been trying to install the pet store implementation. After jumping a few hoops this last one has been testing me for a while now. Here is the environment : j2sdkee1.2.1, jdk1.3.0_02, Cloudscape_3.6, jboss-tomcat-2.2, jps1.1.1 and the patch from jboss on Windows 2000 server. Here is what I do : Step 1 : Start Cloudscape using the script in j2sdkee1.2.1\bin\cloudscape.bat -start Step 2 : Start jboss using jboss-tomcat-2.2\jboss-2.2\bin\run.bat Step 3 : On the browser I try http://localhost:8080/estore/control/language?language=English This results in a the following exception Internal Servlet Error: java.lang.RuntimeException: NamingException while looking up DB context : EstoreDB not bound at com.sun.j2ee.blueprints.shoppingcart.catalog.model.CatalogModel.init(Catalog Model.java:42) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogModel(Mo delManager.java:84) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelManager. java:60) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j ava:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Now, if I refresh the screen. I get the first page right but on the console from where I started jboss I get this message 2001-05-06 03:47:46 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECTuser_pass FROM users WHERE user_name = ? 2001-05-06 03:47:47 - ContextManager: JDBCRealm: Authentication unsuccessful for user null Thanks in advance. Swamy
Re: JNDI Datasource in Tomcat
Harden, You'll need some connection pooling software which doesn't appear to come bundled with Tomcat. There are several open-source connection pools. I've used PoolMan (www.codestudio.com), and found it to work pretty well. I did have a problem using JNDI, which I never successfully resolved, however: to make a Datasource (or any object) available through JNDI, you need to set up a proper security policy. I was never able to deploy a datasource that my servlets could read. Most connection pooling software packages don't require that you use JNDI (they come with propietary configuration files and such). Note: If you use a full J2EE solution such as Enhydra or JBoss (both of which come bundled with Tomcat), then they'll set up your data sources for you (you modify some XML files), and you're good to go. Cheers, E. >From: "Harden ZHU" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: <[EMAIL PROTECTED]> >Subject: JNDI Datasource in Tomcat >Date: Sun, 6 May 2001 23:04:07 -0400 > >Hi > >I try to use JNDI to get datasource in tomcat. How can I config a jndi >datasource in >tomcat so i can get datasource as follow code? > >Thanks > >Harden >=== >public AttributeDAO(String dataSource) throws AttributeDAOException { > > try { > InitialContext ic = new InitialContext(); > datasource = (DataSource) ic.lookup(dataSource); > } catch (NamingException ne) { > throw new AttributeDAOException("NamingException while looking >" >+ > "up DB context : " + ne.getMessage()); > } > > } > _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Cannot create bean of class riddles.Riddler
I know someone posted a message with a problem similar to this about a month ago, but was unable to find the solution. I have deployed my riddles package in the WEB-INF/classes directory for this program. There is an empty constructor in the bean. I have already ruled out a ClassNotFound exception. At this point I think I am down to a configuration issue. I am using Tomcat 3.2.1. If someone knows the resolution to this issue, please let me know. Thanks, Mac PS for further information see below: This is the useBean tag copied directly from my JSP: Below is the code in my web.xml file: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Below is the context entry from my server.xml file: This is the try-catch block from the generated servlet code where the error message is generated: try { riddler = (riddles.Riddler) Beans.instantiate(this.getClass().getClassLoader(), "riddles.Riddler"); } catch (Exception exc) { throw new ServletException (" Cannot create bean of class "+"riddles.Riddler"); }
Re: problems with Tomcat 3.2.1 samples
Hi, Jack When you say "does not work," what do you see? Do you get an error (e.g. 404-Not Found), or do you get a directory listing? If you get a directory listing, then it is working. Seems you're on the right track. The fact is you don't really need to do anything special to get the examples working. Regards, Noel Lecaros jackling wrote: > > Hi, > > I'm not familiar w/ the configuration also. > > http://localhost:8080/examples/ does not work for me. Is it my config > problem? > > But I try this and works: > > http://localhost:8080/examples/servlet/CookieExample > > this is to call the \web-apps\examples\web-inf\classes\CookieExample.class > > Is it correct to say that we hv to put the java classes under the > web-inf\classes? > > pls let me know if I'm on the right track. > > thanks, > jackling. > > - Original Message - > 寄件者: "Noel E. Lecaros" <[EMAIL PROTECTED]> > 收件者: <[EMAIL PROTECTED]> > 傳送日期: 2001年5月6日 PM 11:19 > 主旨: Re: problems with Tomcat 3.2.1 samples > > > Hi, Ofer > > > > What URL did you type? Did you try: http://localhost:8080/examples/ ? > > > > Regards, > > Noel Lecaros > > > > Ofer Baranes wrote: > > > > > Hi there , i install Tomcat 3.2.1 and i try to run its samples , but it > > > failed. > > > > > > What's wrong or miss in the next steps which i follow : > > > > > > 1 - add to my autoexec.bat : > > > set TOMCAT_HOME=c:\tmct321 > > > set JAVA_HOME=c:\jdk13002 > > > set PATH = > > > %PATH%;c:\;c:\jdk13002\bin;c:\jdk13002; > > > 2 - run the tomcat.bat file : > > >tomcat.bat start > > > > > > 3 - open webapps\examples\servlets\index.html and hit the execute > button > > > which fails(all the other examples failed as well) > > > > > > I haven't done any change to the server.xml. > > > Am i using right the tomcat.bat ? should i use the web.xml in any way > ? > > > > > > What is wrong here ?! > > > > > > > >
inheritance and beans
Hello There! I was wondering if anybody could help me with a little problem I have? I have a Tomcat based jsp application and I am trying to you a bean that inherits the functionality of another bean. However, when the base bean is instantiated, I get this error message; Error: 500 Location: /test/jason/alter_event/alter_event_handler.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPerror: File /export/home/jasont/dev_tom/jakarta-tomcat-3.2.1/webapps/test/WEB-INF/classes/alterEvent/alterEvnt.java does not contain type alterEvent.alterEvnt as expected. Please adjust the class path so that the file does not appear in the package alterEvent. /export/home/jasont/dev_tom/jakarta-tomcat-3.2.1/work/localhost_8080%2Ftest/_0002fjason_0002falter_0005fevent_0002falter_0005fevent_0005fhandler_0002ejspalter_0005fevent_0005fhandler_jsp_0.java:60: Class alterEvent.alterEvnt not found. alterEvent.alterEvnt alterEventBean = null; ^ /export/home/jasont/dev_tom/jakarta-tomcat-3.2.1/work/localhost_8080%2Ftest/_0002fjason_0002falter_0005fevent_0002falter_0005fevent_0005fhandler_0002ejspalter_0005fevent_0005fhandler_jsp_0.java:63: Class alterEvent.alterEvnt not found. alterEventBean= (alterEvent.alterEvnt) ^ /export/home/jasont/dev_tom/jakarta-tomcat-3.2.1/work/localhost_8080%2Ftest/_0002fjason_0002falter_0005fevent_0002falter_0005fevent_0005fhandler_0002ejspalter_0005fevent_0005fhandler_jsp_0.java:68: Class alterEvent.alterEvnt not found. alterEventBean = (alterEvent.alterEvnt) Beans.instantiate(this.getClass().getClassLoader(), "alterEvent.alterEvnt"); ^ 4 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) I am a little uncertain of what is going on. Perhaps it has something to do with the types of the beans? Any help os appreciated! Thanks! Jason _ http://store.yahoo.com.au - Yahoo! Store - It's time you had your business online!
WAP
Hi When I try to run WML on Tomcat 3.2, I get MIME type "text/plain" is not supported I have put the mime types for WML in /conf/web.xml as you can see below and is using Nokia WAP Toolkit. It all worked great when I use Tomcat 3.1 and I can't see why it shouldn't work on 3.2. What more I can do? /Odd wml text/vnd.wap.wml wbmp image/vnd.wap.wbmp wmlc application/vnd.wap.wmlc wmls text/vnd.wap.wmlscript wmlsc application/vnd.wap.wmlscriptc _ Odd Olsen Volvo IT Dept 2540, DA2N SE-40508 Goteborg, Sweden Telephone: +46 31 7655718 E-mail: [EMAIL PROTECTED]
RE: My growing memory problem resolved
Hi, This is a guess, I suggest reviewing the garbage collection rules for the JVM. I know that you're on the right track by assigning null to the object, but this does not guarantee that the object will be garbage collected, and there is no way to guarantee garbage collection will run according to the specification. Garbage collection is a low priority thread that only executes with the JVM thinks it has sufficient time to perform the process. I am also wondering if you store your heavy object in the session, as doing so would cause a reference to the heavy object to exist for the durration of the session of each thread. If you are storing the heavy object to the session, then you'll want a session.remove("ho"); statement in your finally clause. Other than that, I cannot think of anything else to do... -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 6:46 PM To: tomcatUser Subject: My growing memory problem resolved Hello , i have posted for a few day's a problem thats the Memory usage will extremly grow up when I refresh a page very often The Problem was, that I creat a "heavy memory" Object on each refresh. Normally I have 81 processes run at all, when execute the "stress-test" the processcount will rise till ~ 230. And each new Prcoesses will creat a new Object. When I stop the stress-test, the processcount becomes normal (~ 100) , but the memory usage won't fall. But the new created Object have now refernces that points to them. But why they don't becomes free My code is somthing like this: public class servlet1 extends HttpServlet{ .. ... .. .. public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException{ try{ HeavyObject ho = new HeavyObject(); } finally{ ho = null; // for testing implementet, but this gives the memory not free, also } } } Is this a Bug in Tomcat ? Or is it a Bug from me ? Or som Java misunderstood ? Why will the Object not becomes free, when some of the Threads will be closed , and the only reference is in the closed Thread ? Greetings, Michael
AW: Loosing Connections in a pool
Do you use a connection pool or do you have connections open for several hours ? Most databases have a maximal time frame for an open connection. So your software (or the connection pool you're using) has to be prepared to reconnect if the server closes the connection. > -Ursprüngliche Nachricht- > Von: Dan Randall [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 4. Mai 2001 20:32 > An: [EMAIL PROTECTED] > Betreff: Loosing Connections in a pool > > > Hi, > > My tomcat application runs in a production environment for > about 24 hours before it fails and must be restarted. During > that time JDBC connections to Oracle become ignored and > eventually disappear. A fair guess is that I am loosing > memory, threads and resources in general until there is > nothing left and only a restart cures the matter. > > Unfortunately, tomcat, rather than apache is serving much of > the pages and graphics. That may be a contributing factor? > > I am using: > > Solaris 8 > Oracle 8.1.7 > tomcat 3.2.1 > apache 1.3.19 > and Java 1.3 > > Does anyone have an idea of what sort of problems I might be > having? Any known resource leaks or threading issues? > > Thanks!! > > Dan > >
Re: log4j and tomcat
You can try the following: String propPath = conf.getServletContext().getResource("/WEB-INF/classes/log4j.properties"); PropertyConfigurator.configure(propPath); ... regards Winfried > > Hello there! > > I was wondering if anybody could help with a tomcat > and log4j problem? > > I have placed my log4j.properties file into my > WEB-INF/classes direcotry but it seems that Tomcat is > not picking it up! > > This is the line in my code in my .java file taht > tells me what .properties file to look for > > PropertyConfigurator.configure("log4j.properties"); > > If I put in the full path to the .properties file, it > still does not seem to find it! > > It tells me the following the error message: (but the > application in the browser works fine > > log4j:ERROR Could not read configuration file > [log4j.properties]. > java.io.FileNotFoundException: log4j.properties (No > such file or directory) > at java.io.FileInputStream.open(Native Method) > at > java.io.FileInputStream.(FileInputStream.java:64) > at > org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:289) > at > org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:308) > at security.security.(security.java:32) > at java.lang.Class.newInstance0(Native Method) > at java.lang.Class.newInstance(Class.java:237) > at > java.beans.Beans.instantiate(Beans.java:207) > at java.beans.Beans.instantiate(Beans.java:51) > at > >jason.security._0002fjason_0002fsecurity_0002flogin_0005fhandler_0002ejsplogin_0005fhandler_jsp_0._jspService(_0002fjason_0002fsecurity_0002flogin_0005fhandler_0002ejsplogin_0005fhandler_jsp_0.java:68) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) > at > org.apache.tomcat.core.Handler.service(Handler.java:286) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) > at java.lang.Thread.run(Thread.java:484) > log4j:ERROR Ignoring configuration file > [log4j.properties]. > > any help is appreciated! > Jason > > --- Anuj Agrawal <[EMAIL PROTECTED]> wrote: > Yes it > can. > > > > You might want to consider creating a > > log4j.properties file to hold your log4j > > configuration. Have that file in your > > WEB-INF/classes dir and tomcat would > > automatically pick it up. > > > > HTH. > > Anuj. > > > > teh j wrote: > > > > > I have recently started playing with log4j. Does > > > anybody know if it can be used with Tomcat? > > > I have a a JSP app running on tomcat that has > > several > > > beans and classes and was wondering if I could use > > > log4j as a logging tool > > > > _ > http://store.yahoo.com.au - Yahoo! Store > - It's time you had your business online!
Re: JAVA vs. PERL startup time + memory
Thanks James, You had solve my problem i had stuck for a month. You are right !!! Apache spawn only one CustomLog process. But it seems like Apache's "Log to pipe" feature only works on unix. When i try to pipe the log to a java application in windows, it seems not working. on unix: CustomLog "|java -classpath /opt pipe" common on windows 2000: CustomLog "|java -classpath d:\ pipe" common // doesn't work in windows I had verfiy the classpath and java path is right by runing the java app in windows terminal. more comment would be more than welcome. thanks. --- James Klicman <[EMAIL PROTECTED]> wrote: > > Choose whichever language you want and don't worry. > > Apache will spawn only one CustomLog process for all > log records. It > will only start a new process if the pipe hangs or > the log process > dies. It would be ridiculously inefficient if Apache > spawned a new > process to log each record. > > -James > > > On Sat, May 05, 2001 at 06:07:52PM -0700, tim leung > wrote: > > My problem is I must use unix pipe. > > e.g. command1 | command2 > > > > where command1 is some unix command. > > where command2 is "java PipeReader" > > > > that is output of command1 sent to input of java > > application -- PipeReader. > > > > why I must use pipe? > > because I am using apache web server. apache > server > > will do logging to a text file. instead of log to > > text file. I can also log to a pipe : > > > > // apache server log to a pipe instead of log > file > > e.g. CustomLog "|java -classpath /opt pipe" > common > > > > I pipe the log's (byte sent) / sessionID > etc... > > to the application and the application will HTTP > POST > > the log back to servlet for further processing. > > > > the suggestion of unix pipe to a running process > > (daemon) is what I really want to do but i dont' > think > > there is a way to do it. inorder to pipe the > > command1's Output to java app PipeReader's Input > > (stdin). I must invoke a new JVM process inorder > to > > do pipe. right? > > > > any one can help me out? > > thanks. > > > > --- Ross Dyson <[EMAIL PROTECTED]> wrote: > > > The JVM is loaded just ONCE not once pre > request. > > > > > > This is WHY java back-ends have better > performance > > > and are scalable. > > > > > > -Original Message- > > > From: tim leung [mailto:[EMAIL PROTECTED]] > > > Sent: Sunday, 6 May 2001 4:39 AM > > > To: [EMAIL PROTECTED] > > > Subject: JAVA vs. PERL startup time + memory > > > > > > > > > Hi, > > > I am thinking of write an unix app that will get > > > data > > > from a pipe e.g. | and then will do a > HTTP > > > POST to some server. > > > > > > e.g. command1 | java PipeReader-- OR > -- > > > e.g. command1 | perl PipeReader > > > > > > Assume I need to invoke the JVM process or PERL > > > process very frequently ( 5 times / sec ) --> ( > 300 > > > times / min ) > > > > > > I know that Java's startup time is slow. and it > > > allocation a block of per-defined memory when it > > > starts up. like 2MB. although it may only > > > use 300KB. so. I think start a JVM process is > SLOW > > > and need lots of > > > memory. > > > > > > I am not very familiar with PERL. I wonder if I > > > invoke > > > 300 PERL process / min, is it faster and use > less > > > memory than invoke 300 JVM process / min? > > > > > > Both will do the same thing.--> each time it's' > > > invoked, it will do a HTTP POST of some data get > > > from > > > the pipe ( stdin ) and then System.exit(). > > > > > > thanks. > > > > > > > __ > > > Do You Yahoo!? > > > Yahoo! Auctions - buy the things you want at > great > > > prices > > > http://auctions.yahoo.com/ > > > > > > __ > > Do You Yahoo!? > > Yahoo! Auctions - buy the things you want at great > prices > > http://auctions.yahoo.com/ __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: WAP
Hi, there is a bug in tc 3.2, you have to put the mime types in the web.xml under your application yourApplication/web-inf/web.eml Arthur - Original Message - From: "Olsen Odd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 8:10 AM Subject: WAP > Hi > > When I try to run WML on Tomcat 3.2, I get > MIME type "text/plain" is not supported > > I have put the mime types for WML in /conf/web.xml > as you can see below and is using Nokia WAP Toolkit. > > It all worked great when I use Tomcat 3.1 and I can't see > why it shouldn't work on 3.2. What more I can do? > > /Odd > > > > wml > text/vnd.wap.wml > > > > wbmp > > > image/vnd.wap.wbmp > > > > > wmlc > > > application/vnd.wap.wmlc > > > > > wmls > > > text/vnd.wap.wmlscript > > > > > wmlsc > > > application/vnd.wap.wmlscriptc > > > > _ > Odd Olsen > Volvo IT > Dept 2540, DA2N > SE-40508 Goteborg, Sweden > > Telephone: +46 31 7655718 > E-mail: [EMAIL PROTECTED] > >
Re: log4j and tomcat
Oops, correcting... String propPath = conf.getServletContext().getResource("/WEB-INF/classes/log4j.properties").getPath(); PropertyConfigurator.configure(propPath); ...
tomcat on sco
Hi, I have a UNIX system running SCO OpenServer 5.0.6. Can anyone help me with info on how to compile tomcat together with all the neccessary apps? Does anyone know where I can find the binaries for SCO? Thanks Raymond