Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
Using the manager app (/manager/status) I am seeing multiple threads in the 'Service' mode with times of well over 60 minutes! Here is an example: Stage TimeB Sent B Recv Client VHost Request S 5192947 ms 0 KB0 KB67.152.68.16dev1.mycompany.com GET /

RE: Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
and hasn't sent anything. --- Bovy, Stephen J [EMAIL PROTECTED] wrote: MaxThreads Stephen Bovy Computer Associates 6100 Center Drive Suite 700 Los Angeles, CA 90045 Tel: (310) 957-3930 Fax: (310) 957-3917 e-mail: [EMAIL PROTECTED] -Original Message- From: August

Tomcat 5.5 not closing active connections

2005-09-01 Thread August Detlefsen
Does tomcat ever close a connection once it is in the 'Service' mode? Using the manager app (/manager/status) I am seeing multiple threads in the 'Service' mode with times of well over 60 minutes! Here is an example: Stage TimeB Sent B Recv Client VHost Request S 5192947 ms

Explicitly close ServletOutputStream?

2005-06-21 Thread August Detlefsen
If you use response.getOutputStream() to get an output stream for binary data such as PDF or images, do you need to explicitly close that stream when you are done writing to it or does the servlet container do it for you automatically? Thanks, August

Force Non-SSL

2005-05-25 Thread August Detlefsen
In my webapp I force clients to use SSL encryption for logins with a security constraint and transport-guarantee elements like this: security-constraint web-resource-collection web-resource-nameLogin/web-resource-name url-pattern/login/*/url-pattern

Re: Force Non-SSL

2005-05-25 Thread August Detlefsen
Is there no way to do it? SSL creates a lot of overhead for a site that is serving up 100MB image files. --- Tim Funk [EMAIL PROTECTED] wrote: no -Tim August Detlefsen wrote: In my webapp I force clients to use SSL encryption for logins with a security constraint and transport

Re: Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-11 Thread August Detlefsen
Where do you get the non-buggy version? The TC 5.5 release notes don't mention anything changing in jsvc since version 5.5.3. Is 5.5.9 now released? Does it include the jsvc fixes? --- Bill Barker [EMAIL PROTECTED] wrote: August Detlefsen [EMAIL PROTECTED] wrote in message news

Re: Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-11 Thread August Detlefsen
One mroe question: If you are using jsvc can you still use the $CATALINA_HOME/bin/[shutdown|startup].sh scripts to do manual tomcat restarts? --- August Detlefsen [EMAIL PROTECTED] wrote: Where do you get the non-buggy version? The TC 5.5 release notes don't mention anything changing

Clean shutdown? Can sessions survive a jsvc stop/start ?

2005-04-08 Thread August Detlefsen
In TC 5.5.7, the tomcat start/stop script for Linux/Solaris (/etc/init.d/tomcat) stops tomcat by simply killing the process: stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; Do user sessions ever get a chance to be serialized if tomcat is stopped in

NoClassDefFoundError at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4141)

2005-04-05 Thread August Detlefsen
Tomcat: 5.5.7 Java: 1.5.0_02 OS: SunOS 5.9 (Solaris 9) I am getting the following errors in my catalina.out: Apr 5, 2005 11:26:57 AM org.apache.catalina.startup.HostConfig deployDescriptor SEVERE: Error deploying configuration descriptor ROOT.xml java.lang.NoClassDefFoundError at

Only a type can be imported. com.mycompany.InputAttributes resolves to a package

2005-03-02 Thread August Detlefsen
Every once in a while when I am compiling JSPs I get this error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated

Example of a logAbandonded stack trace?

2003-10-15 Thread August Detlefsen
Can someone please post an example of the stack trace produced when abandoned connections are logged? I am seeing stack traces like these in my logs and I'd like to know if they are coming from abandoned connections: 2003-10-08 10:17:25 StandardWrapperValve[admin]: Servlet.service() for

RE: long delay in ie

2002-12-13 Thread August Detlefsen
Which JVM are you using to load the applets? --- Turner, John [EMAIL PROTECTED] wrote: My company uses IE exclusively, and while we don't use 4.1.x in production yet, we have been doing a significant amount of testing and have not seen this problem. If it works in one browser but not

RE: ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL

2002-07-31 Thread August Detlefsen
guessing not if you dont know what it is), comment or delete the line LoadModule jk_module mentioned above and also the line AddModule mod_jk.c in your httpd.conf file (this line may not be present). have phun -t0bes -Original Message- From: August Detlefsen [mailto:[EMAIL

ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL

2002-07-30 Thread August Detlefsen
I am seeing this error in my log files when I startup tomcat: mod_jk location: libexec/mod_jk.so Make sure it is installed corectly or set the config location Using ApacheConfig modJk=PATH_TO_MOD_JK.SO_OR_DLL / Starting service Tomcat-Apache There is no mention of it in the list archives.

Re: Login-Password http://localhost/manager ????? Please help me....

2002-07-25 Thread August Detlefsen
In order to use the manager app, you have to have the role 'manager' defined for your username. --- IT-INDIA.com [EMAIL PROTECTED] wrote: hi, I have installed TomCat 4.0.4 on W2K. Everything seems OK. I can access the examples and run them thru http://localhost:8080 Now when I access

Cannot compile CoyoteServerSocketFactory - overridden method does not throw java.security.KeyManagementException

2002-07-24 Thread August Detlefsen
Has anyone ever seen this error before? I am trying to build the latest version of the connectors and I run into this error when trying to compile: [javac] /root/dl/jakarta-tomcat-connectors-4.0.4-src/coyote/src/java/org/apache/coyote/tomcat4/CoyoteServerSocketFactory.java:102:

Re: JWMA and Tomcat 4.0.4

2002-07-24 Thread August Detlefsen
I have it running just fine with TC 4.0.4 on Linux. I did have to tweak it quite a bit though. Let me know what kind of prolems you are having... -August --- Adrian [EMAIL PROTECTED] wrote: I tried it today with 4.0.4 but, there were parsing errors, I was able to get it to run on FreeBSD

DirectoryIndex not working on Apache 2.0.39 - mod_jk - Tomcat 4.0.4

2002-07-24 Thread August Detlefsen
I've integrated Apache 2.0.39 with TC 4.0.4, but it is not picking up index.jsp as a welcome file. index.jsp does load fine if you explicitly specify it in the URL, however: works: http://www.myserver.com/index.jsp not: http://www.myserver.com/ works: http://www.myserver.com/index.html I've

Solved: DirectoryIndex not working on Apache 2.0.39 - mod_jk - Tomcat 4.0.4

2002-07-24 Thread August Detlefsen
You need to download and build version 1.50 of mod_jk.c from CVS. The version distributed in jakarta-tomcat-connectors-4.0.4-src.tar.gz is 1.44. -August --- August Detlefsen [EMAIL PROTECTED] wrote: I've integrated Apache 2.0.39 with TC 4.0.4, but it is not picking up index.jsp as a welcome

Re: Webdav servlet

2002-07-18 Thread August Detlefsen
I tried using the WebDAV servlet some time back, but it doesn't work as well as I'd hoped (at least, with DW UltraDev that my developers demanded). If you are using Apache-Tomcat you can try mod_webdav instead, though it requires a separate port for each virtual host. If you need, I can post the

Re: Cobranding - Share Controller, Split View

2002-07-15 Thread August Detlefsen
to allow access to the ROOT context, but only from this one app? -August --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Sun, 14 Jul 2002, August Detlefsen wrote: Date: Sun, 14 Jul 2002 23:15:53 -0700 (PDT) From: August Detlefsen [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL

Re: Cobranding - Share Controller, Split View

2002-07-15 Thread August Detlefsen
This will work, but then I'd have to add a different servlet definition for each cobrand (and code the views with different references as well?). There must be a simpler way..? --- Henner Zeller [EMAIL PROTECTED] wrote: Hi, I know I can treat the servlets as a separate webapp and deploy

Cobranding - Share Controller, Split View

2002-07-14 Thread August Detlefsen
I am currently developing several cobranded sites that share the same functionality. I want to be able to share the same set of servlets across multiple cobrands. I know I can treat the servlets as a separate webapp and deploy them to each separate host, but if I do this, will they be able to

Where do serialized Objects go?

2002-07-12 Thread August Detlefsen
If I reload a context using the manager, Objects in my session get serialized -but where do they go? Are they actually written somewhere or only stored in memory? Do Objects get serialized when you do a full Tomcat restart? If so, where? Is there any chance that an Object could survive a full

Re: Where do serialized Objects go?

2002-07-12 Thread August Detlefsen
Aha. Thanks! I never found them before because that file is deleted from the filesystem as soon as it is read back in... --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Fri, 12 Jul 2002, August Detlefsen wrote: Date: Fri, 12 Jul 2002 18:31:01 -0700 (PDT) From: August Detlefsen

Re: The best website database!

2002-07-01 Thread August Detlefsen
--- Charles Baker [EMAIL PROTECTED] wrote: Not saying you're wrong or right, but what do you see as the glaring holes in Postgres 7.2? And certainly not wanting to start any flame wars. I started using Postgres about a year ago after many Oracle-based projects. The biggest things I have

Re: Mailing List Load.... Forum???

2002-06-27 Thread August Detlefsen
Don't forget www.mail-archive.com. They have a great search tool for this list (and many many others): http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ -August --- Liam Morley [EMAIL PROTECTED] wrote: Milt, I'm probably coming into this a bit late in the game (and a bit

Re: Age old question...

2002-06-27 Thread August Detlefsen
--- Milt Epstein [EMAIL PROTECTED] wrote: On 26 Jun 2002, Keith Pemberton wrote: Well, I'm not sure mod_jk will be any different. And is this any more than a minor aesthetic issue? Not when most of your users can barely type one / , much less two! FWIW, here's something a bit weird,

JNDI - What resources are loaded?

2002-06-27 Thread August Detlefsen
Is there a way to list all of the JNDI Resources that are loaded for a particular context? __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

RE: Parameters for virtual servers in server.xml? Is it possible?

2002-06-18 Thread August Detlefsen
You can put parameters such as this in web.xml for each webapp: context-param param-nameserviceProvider/param-name param-valueservice1/param-value descriptionThis is the description/description /context-param Then you can get them in your servlet using:

Re: Null Pointer Exception - would you please take a look?

2002-06-18 Thread August Detlefsen
If you are trying to insert a NULL into a NOT NULL column (or are trying to insert special chars or the String is too long), you should get a SQLException, not a NullPointerException. You should recheck that you are actually getting a valid Connection --- Eddie Bush [EMAIL PROTECTED] wrote:

Re: AW: mapping upper-case to lower !

2002-06-14 Thread August Detlefsen
This would work, but mod_rewrite and mod_webapp interfere with each other - webapp grabs all URLs before rewrite has a chance to work on them... --- Ralph Einfeldt [EMAIL PROTECTED] wrote: Store all files in lower case and write a filter that tranforms any requested jsp name to lower case.

RE: Tomcat Performance is good!

2002-06-14 Thread August Detlefsen
That is interesting. I always thought perl was better for big text searches... Did you give it a database backend? What API are you using for the search? Or is your performance improvement strictly due to the precompiled always-on nature of servlets (as opposed to interpreted perl)? -August

RE: [offtopic] IDE for Tomcat?

2002-06-13 Thread August Detlefsen
But how many of these IDEs work remotely? Those of us who can only make ssh connections to our servers are stuck with emacs and ant... I have tried IntelliJ IDEA and it works over WebDAV (mount the webapp as a drive using WebDrive or similar), but then you have to deal with WebDAV slowness...

Line Numbers in compiled code...

2002-06-12 Thread August Detlefsen
How do I get line numbers in my stack trace? All the org.apache and javax class show line numbers, but my classes do not: java.lang.NullPointerException at showplan.Controller.dispatchContentAction(Controller.java) at showplan.Controller.service(Controller.java) at

Re: AW: How many rows have a ResultSet?

2002-06-12 Thread August Detlefsen
LoL @ Oracle. It works great with Postgres! --- Power-Netz (Schwarz) [EMAIL PROTECTED] wrote: If you are using JDBC 1.2 you can do it like this (snippet): //declare your Statement to return a scroll insensitive result set //before you make the query stmt =

Re: AW: Line Numbers in compiled code...

2002-06-12 Thread August Detlefsen
with -g. - If you did it and you still don't get the numbers, it may help to disable the jit/hotspot compiler. -Ursprüngliche Nachricht- Von: August Detlefsen [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 12. Juni 2002 09:56 An: Tomcat Users List Betreff: Line Numbers

Re: Whats wrong with this code?

2002-06-10 Thread August Detlefsen
What error are you getting? --- Juan [EMAIL PROTECTED] wrote: This piece of code don't work if the '@' is not found: String em = usuario.getEmail(); int p = em.indexOf('@'); out.println(Integer.toString(p)); if the '@' is within the string, it works well. Why?

Re: How many rows have a ResultSet?

2002-06-10 Thread August Detlefsen
Am I correct in assuming you want the number of rows BEFORE you iterate the result set? If you are using JDBC 1.2 you can do it like this (snippet): //declare your Statement to return a scroll insensitive result set //before you make the query stmt =

Writing XML

2002-06-10 Thread August Detlefsen
There seem to be a million libraries out there for reading and parsing XML, but how can I WRITE XML? I essentially want to take a Collection of Objects (like a List of Strings) and create an XML Object from that (That I could save to the filesystem or a database, or pass along to another

Re: web.xml DTD

2002-06-09 Thread August Detlefsen
Thanks Craig, the DTD from servlet.jar was just what I needed. -August --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Fri, 7 Jun 2002, August Detlefsen wrote: Date: Fri, 7 Jun 2002 16:54:28 -0700 (PDT) From: August Detlefsen [EMAIL PROTECTED] Reply-To: Tomcat Users List

Re: Solaris JVM never seems to garbage collect, runs out eventually.

2002-06-07 Thread August Detlefsen
Ralph, you mention using jikes as a possible alternative... Will jikes work with JDK 1.4? Are there any other benefits to using jikes besides the memory leak issue? -August --- Dave Hladky [EMAIL PROTECTED] wrote: Rick Fincher wrote: The javac in J2SE 1.4 has the memory leak 1.1.1

web.xml DTD

2002-06-07 Thread August Detlefsen
Where can I find the DTD for web.xml? I want to make sure I have the elements in the correct order. Thanks, August __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail:

Re: AW: how to virtual hosting with apache 13.x, tomcat 4.0.3, mod_webapp

2002-06-05 Thread August Detlefsen
Works for me... I have about 10 virtual hosts sharing the same connection. --- Nikola Milutinovic [EMAIL PROTECTED] wrote: You only need one WebAppConnection statement - The same connection is shared by multiple vhosts/webapps. Try it like this: WebAppConnection conn warp

Re: AW: how to virtual hosting with apache 13.x, tomcat 4.0.3, mod_webapp

2002-06-04 Thread August Detlefsen
You only need one WebAppConnection statement - The same connection is shared by multiple vhosts/webapps. Try it like this: WebAppConnection conn warp localhost:8008 VirtualHost 193.10.10.25 DocumentRoot /path/to/website1 ServerName www.website1.org WebAppDeploy website1 conn /website1

Re: Having a Newbie Delamere here.

2002-06-04 Thread August Detlefsen
Still having this problem? I think in here you need to add rs.next() or rs.first() to move to the first row of the ResultSet before you call rs.getString(): if (bPageExists) { sQuery = SELECT * FROM tblforms WHERE PageOrder = + iPage; stmt = conn.createStatement(); rs =

RE: Can all virtual hosts use a webapp that is put inside $tomcat _home$/webapps?

2002-05-15 Thread August Detlefsen
Is this also supported in TC 4.x? --- Larry Isaacs [EMAIL PROTECTED] wrote: I don't believe Tomcat 3.2.x supports auto-serving the webapps directory for hosts other than the default host. However, this is supported in Tomcat 3.3.x. The AutoWebApp ... element in the server.xml file

Re: Restart Session Persistence

2002-05-14 Thread August Detlefsen
If you want certain session data to not be serialized, just make those variables transient in whatever bean classes you are using in session. This will prevent just those variables from being saved. public class UserBean implements Serializable { private String username; private transient

Re: off-topic: sun website broken?

2002-05-13 Thread August Detlefsen
Seems to be working for me. Of course I find the fact that the whole sun.com site is static html and cgi very disheartening... --- Milind Nirgun [EMAIL PROTECTED] wrote: This post is not directly tomcat related but since most people on the list would be frequent browsers of the java

Re: Problem Uploading Image files

2002-05-13 Thread August Detlefsen
Make sure you have the latest version of mod_webapp installed. There was a bug in multipart handling in earlier versions. --- Lawlor, Frank [EMAIL PROTECTED] wrote: We have been using the O'Reilly multipart upload code, but are having problems uploading image (jpg, gif) files. I have

Re: tomcat 4.0 DB connection pooling (using JNDI) and Oracle DB

2002-05-10 Thread August Detlefsen
So does anyone know if this is scheduled to be fixed in 4.0.4? Is there a change log on the site? What about 4.1? Is it released yet? The docs in the 4.1 section all refer to 4.0.x. --- Valera Molyakov [EMAIL PROTECTED] wrote: I completely agree with Nikola ! After numerous attempts I too

Re: cgi-bin

2002-05-03 Thread August Detlefsen
Implement the CGIServlet. In $CATALINA_HOME/conf/web.xml, uncomment: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-nameclientInputTimeout/param-name param-value100/param-value /init-param

Re: plz help

2002-05-03 Thread August Detlefsen
I have had the same problem. Usually I'll make a stored procedure for inserts that takes as parameters the values you wish to store, inserts the new row and returns the new ID. This is for Postgres, but you can adapt it to your DB: CREATE FUNCTION new_row(INTEGER, VARCHAR, VARCHAR, DATE, DATE,

RE: Apache login attempts

2002-05-01 Thread August Detlefsen
Normally it will ask you again and again until you click cancel. Do you have some special configuration? --- Collins, Jim [EMAIL PROTECTED] wrote: Any Apache gurus out there who know how I can force Apache to give a user more than one login attempt if they enter the wrong user name or

Re: Trouble getting Apache talking to Tomcat

2002-04-23 Thread August Detlefsen
Try this: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp 64.105.155.196:8008 WebAppDeploy examples warpConnection /examples --- zonker harris [EMAIL PROTECTED] wrote: Hey all, I've set up Tomcat, I've put mod_webapp.so into

Re: Directory Listing per web-app

2002-04-18 Thread August Detlefsen
Define the default servlet for each webapp in which you need a different setting (in WEBAPP_DIR/WEB-INF/web.xml). --- Chad Perry [EMAIL PROTECTED] wrote: I know I can turn off directory listing for the entire tomcat 4.0.3 server via the conf/web.xml: servlet . . .

Re: Money for Projects

2002-04-18 Thread August Detlefsen
You can already donate to thousands of charities (including Apache and EFF) using JustGive.org. Because they are sponsored, they are able to send 100% of your donation to the charity and there is no added service fee. http://www.justgive.org --- Christopher Reed [EMAIL PROTECTED] wrote:

Re: Is there a native JDBC driver for MS Access?

2002-04-10 Thread August Detlefsen
There are JDBC drivers for Access out there, but you have to pay for them: http://www.idssoftware.com/jdbcdrv.html http://www.atinav.com/products/aveconnect/MSAccess.htm (I have no idea how either of these performs though) --- chuck amadi [EMAIL PROTECTED] wrote: Adrian Beech wrote:

/lib and /common/lib What's the difference?

2002-04-10 Thread August Detlefsen
Is there a difference between $CATALINA_HOME/lib and $CATALINA_HOME/common/lib ? Does it matter whether something is deployed in one or the other? __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To

Slide + TC4 + Apache with virtual hosts

2002-04-10 Thread August Detlefsen
Can anyone give me an example of a config to do this? My setup is: Apache 1.3 using mod_webapp to connect to Tomcat 4.0.2 I have multiple virtual hosts defined (in server.xml and httpd.conf) that I want to access via Slide's WebDAV component. Looking at the server.xml that came with

WebdavServlet

2002-04-09 Thread August Detlefsen
How do I implement security using the WebdavServlet? mod_dav uses a standard .htpasswd file to track the various developers' logins, is this similar? Can I limit the types of DAV actions that can be performed? Where is the DAV lock information stored? Does anyone know the possible init-params

Re: WebdavServlet

2002-04-09 Thread August Detlefsen
--- Remy Maucherat [EMAIL PROTECTED] wrote: How do I implement security using the WebdavServlet? mod_dav uses a standard .htpasswd file to track the various developers' logins, is this similar? It uses the standard security provided by the container. So I have to configure a Realm? Or

Re: WebdavServlet

2002-04-09 Thread August Detlefsen
Thanks a lot Remy, I've got it working for everything except PUT. I notice in the source that the PUT method is not implemented in WebdavServlet. Is this supposed to be handled by the DefaultServlet? --- Remy Maucherat [EMAIL PROTECTED] wrote: --- Remy Maucherat [EMAIL PROTECTED] wrote:

Re: NIGHTMARE

2002-04-08 Thread August Detlefsen
Search the list! I posted my whole virtual hosts config for Apache 1.3/TC 4 ages ago and it works like a champ. --- Thomas Cherry [EMAIL PROTECTED] wrote: I agree. I gave up trying to get tomcat and apache to talk together and would have loved better documentation, and perhaps examples

Re: NullPointerException when using JDBC ResultSet next() method

2002-04-08 Thread August Detlefsen
The stack trace says that your NullPointer occurs on line 45, but line 45 is blank. Is there some more code that you didn't ost? Import statements, perhaps? I think it probably happened here: stmt = con.createStatement(); -IE: You were not able to get a Connection, con is null and calling

RE: Kinda not topical

2002-04-05 Thread August Detlefsen
I loved the IntelliJ demo I saw at JavaOne, but I need the ability to edit files that are actually ON the server, without downloading them all to my local environment. Does anyone offer an IDE that can do this without using NFS (say over an SSH connection)? --- Mark Shaw [EMAIL PROTECTED]

Re: Kinda not topical

2002-04-05 Thread August Detlefsen
. - Original Message - From: August Detlefsen [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 05, 2002 3:00 PM Subject: RE: Kinda not topical I loved the IntelliJ demo I saw at JavaOne, but I need the ability to edit files that are actually ON the server

Does CGIServlet work with POST?

2002-03-18 Thread August Detlefsen
I setup the CGIServlet for one of my customers using a perl CGI. After much debugging and delving into perl code, we tried switching the form's POST method to GET and it worked fine after that. Does CGIServlet not support POST? -August __ Do

Re: Information required _getString()

2002-03-15 Thread August Detlefsen
as white space no line break .. plz help me try to find out ...with more people and thanx a lot for ur support Reagrds Puneet Sachar e-Developer Shyama software solutions New Delhi 91-011-4675836 --- August Detlefsen [EMAIL PROTECTED] wrote: Puneet, Are the entries stored

Re: Information required _getString()

2002-03-14 Thread August Detlefsen
Puneet, Are the entries stored in the DB with the line breaks? Do you just need a way to translate \n or \r\n to BR for display on the HTML page? --- puneet sachar [EMAIL PROTECTED] wrote: Hello fellow developer I got stuck somewhere actually there is a form which collect the detail

Re: apache tomcat integration syntax error in httpd.conf

2002-03-13 Thread August Detlefsen
For virtual hosts, you have to create the webapp connection AFTER you specify the NameVirtualHost, like this: NameVirtualHost 12.34.56.78 # create the webapp connection WebAppConnection conn warp localhost:8008 WebAppInfo /webapp-info Then actually deploy the webapps within your

How often do I need to restart Apache

2002-03-13 Thread August Detlefsen
I am using Apache 1.3 and TC 4. Do I need to restart Apache every time I restart Tomcat, or only when the Apache-Tomcat configuration changes? For example, if I only make changes to the classes in $TOMCAT_HOME/classes or $TOMCAT_HOME/lib I know I need to restart Tomcat, but do I need to

Re: JDBC, tomcat setup question

2002-03-13 Thread August Detlefsen
This is definately a RTFM issue, buuut: Put your .jar files in: /path/to/tomcat/lib There is no need to change the classpath, TC picks it up automatically when it is started. --- Leila Lappin [EMAIL PROTECTED] wrote: Hi all, I'm trying to set up tomcat and port an application that I

Re: JDBC, tomcat setup question

2002-03-13 Thread August Detlefsen
Sorry, Leila, my comment was not meant to offend, but yours is the #1 question asked on this list (Where do I put my jar files?). Hmmm... There really should be a FAQ for all this stuff... --- Leila Lappin [EMAIL PROTECTED] wrote: I have been reading the documentation but IMHO they are

Re: JDBC, tomcat setup question

2002-03-13 Thread August Detlefsen
Not the same... How many people even know what a class loader is when they start using Tomcat..? --- Emir Alikadic [EMAIL PROTECTED] wrote: On 3/13/2002 9:57 PM, August Detlefsen wrote: Sorry, Leila, my comment was not meant to offend, but yours is the #1 question asked on this list

Re: Closing Connections.

2002-03-12 Thread August Detlefsen
Yes you have to close the connections! Nothing will drop your server faster than running out of DB connections. If you open your connection with this: Connection conn = DriverManager.getConnection(url, user, password); Then you close it like this: conn.close(); --- Hari Yellina [EMAIL

Re: Help in JSP

2002-03-11 Thread August Detlefsen
You specify your statement as this: String scall = begin sp_GetClatTypeIE(?, ?); end;; Which has 2 ?s, but you are only setting the first one: cs.setInt(1, interString); What does your error message say? If this is the problem, Oracle should return something like 'Invalid parameters

Re: Help in JSP

2002-03-11 Thread August Detlefsen
You specify your statement as this: String scall = begin sp_GetClatTypeIE(?, ?); end;; Which has 2 ?s, but you are only setting the first one: cs.setInt(1, interString); What does your error message say? If this is the problem, Oracle should return something like 'Invalid parameters

Re: Help ! Connection busy

2002-03-11 Thread August Detlefsen
You have to explicitly close your JDBC statements and connections when you are done with them. Make sure you are using these for Statement and Connection, respectively: stmt.close(); //and conn.close(); --- Gurmeet [EMAIL PROTECTED] wrote: I am getting [Microsoft][ODBC SQL Server

Re: managerapp with virtual domain

2002-02-27 Thread August Detlefsen
You have to deploy the manager context separately for each virtual host. Add this in server.xml, for each Host/Host block: !-- Tomcat Manager Context -- Context path=/manager docBase=/usr/local/tomcat/webapps/manager debug=0 privileged=true / -August --- Jean-Luc BEAUDET [EMAIL PROTECTED]

RE: What does manager do anyway?

2002-02-27 Thread August Detlefsen
I now think that session data was wiped on a reload only if I made changes to one of the beans. It makes sense: If they get serialized at TC shutdown, but startup detects a different class signature, they can't be re-serialized... --- August Detlefsen [EMAIL PROTECTED] wrote: Yes. On login

Re: Debugging JSPs and Servlets

2002-02-27 Thread August Detlefsen
For the quick and dirty approach, you can put System.out.println() statements in your code and find the output in: TOMCAT_HOME/logs/catalina.out --- Sriram Narayanan [EMAIL PROTECTED] wrote: 2/27/02 11:17:26 PM, Nitin Vira [EMAIL PROTECTED] wrote: Hello, I am trying to create an

Re: J2EE, JSP, SERVLETS

2002-02-26 Thread August Detlefsen
There are a couple of reasons to pick JSP. I usually tell bosses that we use java because it is easy to replicate across multiple hardware as the demand for the app grows (They love thinking about growing demand). Security is an issue too, especially with M$ products (not sure about PHP). How

RE: What does manager do anyway?

2002-02-26 Thread August Detlefsen
Yes. On login, a bean is put in the user's session with name, whether the user is authenticated, and some other tracking data and it is indeed Serializable. --- Cox, Charlie [EMAIL PROTECTED] wrote: -Original Message- From: August Detlefsen [mailto:[EMAIL PROTECTED]] Sent

RE: Stupid Tomcat Question (NEWBIE!)

2002-02-25 Thread August Detlefsen
Usually when I get that exception on startup it means that tomcat didn't comletely shut down the previous time. Try running the shutdown.sh script again to make sure it fully shut down. -August --- Victor Martinez [EMAIL PROTECTED] wrote: This exception tells you that other program is

Re: Writing a bean

2002-02-25 Thread August Detlefsen
You can't define methods inside regular scriptlet blocks % ... %. You have to use a declaration block %! ... % for the printContent() method. You may have to make the method static as well. -August --- Uma Maheswar [EMAIL PROTECTED] wrote: Hi, I wanted to write a java bean inside my JSP

Re: What does manager do anyway?

2002-02-25 Thread August Detlefsen
with every start-stop. Could this be because the webapp was strictly JSP, with no servlet component? --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Mon, 25 Feb 2002, August Detlefsen wrote: Date: Mon, 25 Feb 2002 15:24:31 -0800 (PST) From: August Detlefsen [EMAIL PROTECTED

RE: JSP Taglib Explanation please

2002-02-25 Thread August Detlefsen
It depends on the particular taglib... The taglib's processing methods (doInitBody(), doStartTag(), doEndTag(), doAfterBody(), etc) return ints (EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE, etc) to indicate what should be processed next. It is possible that your taglib's doEndTag()

updating with jsp:setProperty property=* /

2002-02-22 Thread August Detlefsen
I realize that the spec says: If a request parameter has an empty or null value, the corresponding bean property is not set. But, is there a way to make this work for updates when you actually want to remove a value from the bean? Lets say I have a contact manager app and I want to

RE: System.out.println

2002-02-15 Thread August Detlefsen
System.out statements also get written to: /path/to/tomcat/logs/catalina.out --- krithikav [EMAIL PROTECTED] wrote: Thanks, I am seeing the output now. Regards, Krithika -Original Message- From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002

SSL and multipart/form-data POST ?

2002-02-08 Thread August Detlefsen
Is it possible to use SSL with multipart/form-data on a POST operation? The send form in my webmail app uses a multipart post for attachments. It works fine over regular http, but chokes on https. Is this a limitation of Tomcat-Apache-mod_ssl or am I barking up the wrong tree? form

Re: way to get list of all session variables and values?

2002-02-07 Thread August Detlefsen
Try this in your JSP: % if (true) { //turn output on and off Enumeration e = session.getAttributeNames(); while (e.hasMoreElements()) { String name = (String)e.nextElement(); Object value =

Re: Mapping multiple hosts to single Host

2002-02-06 Thread August Detlefsen
In httpd.conf, inside each VirtualHost, you can set the ServerAlias directive - it will allow the same VirtualHost to recognize multiple domain names: NameVirtualHost 12.34.56.78 VirtualHost 12.34.56.78 ServerName myCompany.com ServerAlias myCompany.net myCompany.org myOtherCompany.com

Re: getParameterMap() question

2002-02-06 Thread August Detlefsen
All request parameters are Strings: public java.lang.String getParameter(java.lang.String name) Try casting entry.getValue() to (String): (String)(entry.getValue()) --- Steven Elliott [EMAIL PROTECTED] wrote: Sorry if this is somewhat offtopic but maybe some experts here can help clear

Re: Multi-user problem

2002-02-06 Thread August Detlefsen
In the past I have had good luck with the SQL Server JDBC drivers from iNet software: http://www.inetsoftware.de/English/Produkte/JDBC_Overview/ms.htm Though I wouldn't really recommend SQL Server for anything if you do not have to use it... --- [EMAIL PROTECTED] wrote: Tom Drake [EMAIL

Re: Fixed - RE: RE: Catalina Beans - Class Path Problem

2002-02-04 Thread August Detlefsen
I have found that it does not pick up changes to WEB-INF/classes, though it does recognise changes to WEB-INF/lib. My solution is to update the jar (jar -uvf) whenever I change a class. My build script (run from WEB-INF/src dev directory) goes something like this: #!/bin/bash export

Re: HELP on server.xml PLEASE

2002-02-01 Thread August Detlefsen
I am pretty sure that you need to add the contexts within your virtual hosts. If the same context needs to be accessed from multiple virtual hosts, you have to define it for each one. Does anyone know of a way to deploy a context across multiple virtual hosts? --- Micael Padraig Og mac

Re: triggering JSP page recompilation

2002-02-01 Thread August Detlefsen
If you are using includes for things like header and footer, have you considered forwarding body content to a template page instead? Using the Jakarta-Taglibs request library: http://jakarta.apache.org/taglibs/doc/request-doc/intro.html You can do something like this: BODY PAGE: %@

Re: jsp class loading

2002-01-31 Thread August Detlefsen
You can put the jar in WEB-INF/lib, but to use the classes in a JSP, you have to import them in the page element: %@ page import=my.package.*, my.package.util.* % --- Drinkwater, GJ (Glen) [EMAIL PROTECTED] wrote: I have written some java classes to help my servlet/jsp configuration.

  1   2   >