Can't build Tomcat 4: Help!?

2006-05-17 Thread R. Christian Call
I could use some help in getting Tomcat 4 to build. I've downloaded the source for Tomcat 4.1.31, and I've installed the various other packages required by steps 1-11, as documented in BUILDING.txt, yet I still seem to be missing some pieces--at this point, the build is complaining that javax.

Integrating a JXTA network into a Tomcat hosted servlet

2006-05-17 Thread Mark Petrovic
Some of the readership may find this interesting. http://www.petrovic.org/blog/?p=124 wherein a JXTA p2p network is started in a servlet's init() method. JXTA is an interesting area of Java programming, and affords an open source p2p development platform. The example, which draws on earlier id

Re: display exception in log

2006-05-17 Thread Corobitsyn Roman
Hello Tony, In Context container you must point swallowOutput="true" http://tomcat.apache.org/tomcat-5.5-doc/config/context.html "If the value of this flag is true, the bytes output to System.out and System.err by the web application will be redirected to the web application logger. If not spe

Re: Context Problem

2006-05-17 Thread Corobitsyn Roman
Hello fretzlaff, See http://tomcat.apache.org/tomcat-5.5-doc/config/context.html for atributes for container You wrote I created a context for my webapp with a file named teste.xml under the f> conf\Catalina\localhost with de content: f> crossContext="true" debug="3"> f> f> In my app I have

Re: Help with Tomcat & MySQL using JNDI

2006-05-17 Thread Parsons Technical Services
There is no such critter. I wish it was that simple but due to the needed elements that lie outside the war you need to roll up your sleeves and dig in. First I need to let you know I may not be able to respond in a timely manner. Busy schedule. Now I will assume you have reviewed http://to

Re: Connecting Apache2.2 with Tomcat 5 using mod_proxy_ajp

2006-05-17 Thread Bill Barker
"Tabu Isiaka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm trying to connect Apache2.2 with Tomcat5 by using mod_proxy_ajp. > each time I'm trying to access a jsp page (ex www.abc.com/def/index.jsp) > I receive the following page (with directives): > > <%@ page langua

TOMCAT - HTTP Status 500

2006-05-17 Thread mlt-df
I am trying to visualize my project in the TOMCAT (tomcat5_5.0.30-9_all.deb), however when I access the page, the mistake takes place: HTTP status 500. I go postair to description down: type Exception report message description The server encountered an internal error () that prevented it from

org.apache.jasper.JasperException: Unable to compile class for JSP

2006-05-17 Thread Nick Agianniotis
Hi all! I used to work with Tomcat 3.3 but recently I decided to change to Tomcat 5.5 Unfortunately it appears that I cannot run most of my .jsp files on this version of the server because I encouter this problem: When the server tries to compile the jsp`s, it shows me an error with this stack tra

display exception in log

2006-05-17 Thread Tony Smith
Hi, I run tomcat 5.5 on my computer. If the server throwed a exception, either because of server side java code error or because of a jsp error, the exception was print out in the tomcat log file. I recently reinstalled tomcat, and found that the exception is nolonger reported in the log. Why? Tha

Re: Displaying Photos stored in Oracle in HTML generated byservlet

2006-05-17 Thread Rhino
Calvin, Here is the getRow() method which forms the heart of the FetchBlobs class, followed by the writeBlobToFile() method, just in case you need it. I'll explain these methods after the code: ---

Re: Allowing Users to change their passwords

2006-05-17 Thread digby
I use the Commons Codec library (http://jakarta.apache.org/commons/codec/). It's really simple to do what you want, and there are examples on the site. Digby Khawaja Shams wrote: Hello, We are using the jdbc realm for authentication against a MySQL instance. The passwords are stored in an

HttpRequestWrapper Deprecations?

2006-05-17 Thread Joe Hertz
My Struts (1.2.7) App uses a custom HttpRequest and HttpResponse. That is to say, I extend the HttpServletRequestWrapper and HttpServletResponseWrapper classes I just switched from JDK 1.4.2_06 to 1.5.0_03 and started to get deprecation warnings my extensions of these classes. The warnings stem f

Problem Building mod_jk with --with-apxs

2006-05-17 Thread Sarah
Hi, I was trying to build jakarta-tomcat-connectors-1.2.15 for Apache 1.3.36 and couldn't get configure to use apxs. Here's what I tried: $ cd /usr/local/installers/apache_1.3.36 $ ./configure --prefix=/usr/local $ make $ sudo make install Ok, so Apache builds and installs with no p

Re: Displaying Photos stored in Oracle in HTML generated byservlet

2006-05-17 Thread Calvin Deiterich
Rhino, I'm on 1.5 also, just too early for 1.6. I was really looking to not have to re-invent the wheel with this program. I figured that with all the catalog web pages out there, someone must be storing images in their database and displaying them in HTML. Guess I was wrong ;-( I have the images

Connecting Apache2.2 with Tomcat 5 using mod_proxy_ajp

2006-05-17 Thread Tabu Isiaka
Hi, I'm trying to connect Apache2.2 with Tomcat5 by using mod_proxy_ajp. each time I'm trying to access a jsp page (ex www.abc.com/def/index.jsp) I receive the following page (with directives): <%@ page language="java" pageEncoding="UTF-8"%> <%@ page import="java.util.Locale"%> <%@ taglib uri="ht

Re: Displaying Photos stored in Oracle in HTML generated by servlet

2006-05-17 Thread Calvin Deiterich
David, You brought up a good point that I didn't even think of. Since the text is written out to response using a PrintWriter I would have to use some type of stream output for the images. I created another servlet just to try and display the images. I got as far as retrieving them from the databa

Help with Tomcat & MySQL using JNDI

2006-05-17 Thread Stephen More
Is there a war file available for download that will do nothing more than: select 'HelloWorld from MySQL'; using JNDI ? I have tried following many examples on the web and I keep ending up with: Cannot create JDBC driver of class '' for connect URL 'null' At this point I am pulling out my

Re: Allowing Users to change their passwords

2006-05-17 Thread johnny
Khawaja: OT - Sorry for the ""Probable Spam" in the title... Almost all of my mail is tagged as such by my company's nice spam filter... Thanks, Johnny "Khawaja Shams" <[EMAIL PROTECTED]> 05/17/2006 04:23 PM Please respond to "Tomcat Users List" To "Tomcat Users List" cc Subject [***

Re: [***Probable Spam***] Allowing Users to change their passwords

2006-05-17 Thread johnny
Khawaja: I use the following class to generate an MD5 message digest key from an input string: import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SignatureFactory { private static final char hexDigit[] = {

Allowing Users to change their passwords

2006-05-17 Thread Khawaja Shams
Hello, We are using the jdbc realm for authentication against a MySQL instance. The passwords are stored in an MD5 digest format within our database. I would like to allow our users to change their passwords when they are using the web application. Is there a clean or preferred way to comput

Re: Displaying Photos stored in Oracle in HTML generated byservlet

2006-05-17 Thread Rhino
The current version of Java is indeed 1.5. However, the java 1.6 beta is now available and a few people are using it - but now me. I'm still not clear how we can help you. I understand that you will be getting the pictures from a blob column in the database but you say that you don't have a bl

RE: New Tomcat user

2006-05-17 Thread Gillespie Jr, Edward L. \(LNG-DAY\)
Come on over to my cube or just stand up so we can chat. ED -Original Message- From: Gough, Nicholas D. (LNG-DAY) [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 3:49 PM To: users@tomcat.apache.org Subject: New Tomcat user I'm new to this, so please bear with me. I would like

New Tomcat user

2006-05-17 Thread Gough, Nicholas D. \(LNG-DAY\)
I'm new to this, so please bear with me. I would like to know how to handle the following: 1. 64-bit Linux (RHEL4) capability (what all needs to be done? Do we need to build the executables from the 32-bit source? 2. Command Line Interface for management tools (ala' WSADMIN within IBM's Websphere

Concise way of closing DB resources code sample

2006-05-17 Thread anjan bacchu
Hi All, I was looking at the DataSource HOWTO pageand noticed that the recommended way of closing (BELOW) finally { // Always make sure result sets and statements are closed, // and the connection is returned t

Context Problem

2006-05-17 Thread fretzlaff
I created a context for my webapp with a file named teste.xml under the conf\Catalina\localhost with de content: In my app I have a jsp that calls the link /servlet/TestServlet that is mapped in the web.xml: test.TestServlet test.TestServlet test.TestServ

Re: Displaying Photos stored in Oracle in HTML generated by servlet

2006-05-17 Thread David Smith
Images are separate resources from the HTML their tag is spec'd in. I'd say write your table out with the tag specifying a URL to an image serving servlet. Then put together a simple servlet that will handle those requests and stream the appropriate data to the client. An example: The s

Re: GET redirect from a POST

2006-05-17 Thread Rich Giuli
One final thing in case anyone else is interested... it looks like Java does the wrong thing and converts POST to GET on a redirect by default. However, you can set the system property "http.strictPostRedirect" in Java and then this will use POST for a redirect. Rich Rich Giuli wrote: Hi Bi

internal Server Error

2006-05-17 Thread Marc Muncke
Hello , I want to use the tomcat server connector but first I need to download it. I recieved this ### 500 Internal Server Error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your r

Re: Displaying Photos stored in Oracle in HTML generated by servlet

2006-05-17 Thread Calvin Deiterich
Rhino, That for getting back to me. I am coding with Java 1.5(or whatever they call the latest version). I have all the framework done and can create the table without the images. I would prefer not to have to write the image to the file system since there could be many photos being displayed depe

Re: Displaying Photos stored in Oracle in HTML generated by servlet

2006-05-17 Thread Rhino
- Original Message - From: "CalvinD" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 17, 2006 12:26 PM Subject: Displaying Photos stored in Oracle in HTML generated by servlet I am working on a project that queries staff information and photos from our oracle database and I need to

RE: Unable to consume a secure web service from with in a JSP

2006-05-17 Thread Srikanth Madarapu
Hi I figured the problem, the code I had for setting system properties was in the wrong place. I moved it to the constructor from main method (obviously that wont work, works only when run as standalone program) and it works now. Thanks -Original Message- From: Srikanth Madarapu Sen

Re: Tomcat 5.0.x: AccessLogValve's "%B" pattern specifier shows -1 bytes??

2006-05-17 Thread Tim Funk
Most likely - the response was a 3XX response. In which case - there is no body to send. (In particular look at 304 responses) 1) Setting timeFormat to a format not friendly to SimpleDateFormat will probably yeild bad results. 2) No -Tim Francis Galiegue wrote: Hello list, In order to o

Re: GET redirect from a POST

2006-05-17 Thread Rich Giuli
Hi Bill, Thanks! I can see why this shouldn't be changed because it will break a lot of apps. I am using a Java URL, so it appears that Java isn't redirecting with the same method! I tested from Firefox and it redirects correctly. This isn't an issue for me anymore because I actually do not

Displaying Photos stored in Oracle in HTML generated by servlet

2006-05-17 Thread CalvinD
I am working on a project that queries staff information and photos from our oracle database and I need to display this information in a web page. I can query and display the textual data but now I need to add the image along with the text. If this is not the right form, please direct my to th

Tomcat 5.0.x: AccessLogValve's "%B" pattern specifier shows -1 bytes??

2006-05-17 Thread Francis Galiegue
Hello list, In order to obtain more information from the AccessLogValve logger, I use this parameter: pattern="%a (%B bytes/%D msec) %s %r" The trouble is that it shows pretty much all the time -1 as the number of bytes delivered. It does send a positive number of bytes, however, when the conte

RE: Session Replication

2006-05-17 Thread Lonnie
Figured it out. Rebooted my servers. I suspect that some modifications I made were not recognized until the reboot. Should have thought of it sooner. -Original Message- From: Lonnie [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 4:52 PM To: users@tomcat.apache.org Subject: ***S

RE: help, windows tomcat multiple instances

2006-05-17 Thread Lonnie
I found this article useful for clustering tomcats. http://www.ericsson.com/mobilityworld/sub/open/technologies/open_development _tips/tools/tomcat_web_apache -Original Message- From: Bharathi Kattamuri [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 7:11 AM To: Tomcat Users List

help, windows tomcat multiple instances

2006-05-17 Thread Bharathi Kattamuri
Hi, I am trying to connect Apache webserver with multiple instances of tomcat. I added following line in httpd.conf of apache and apahce is starting fine and forwarding requests to tomcat. Some how tomcat multiple instances are not active. LoadModule jk_module modules/mod_jk.so NameVirtual

Re: AppBase

2006-05-17 Thread Gregg Leichtman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 "By default, the webapps directory is a sibling of conf." Isn't the webapps directory a sibling of the Tomcat home directory? -=> Gregg <=- Alexander E Genaud wrote: > Hej Dirk, > > In catalina.base you have a directory called conf which

Let's make a difference

2006-05-17 Thread balaraju mandala
I'm doing a little something about global warming, I'm inviting my friends to join me: http://friends.earthscreen.com/?r=QTF0R3gGdhFSBmcNCyIH&i=gmail&[EMAIL PROTECTED]&p=2&z=1&tc=11 - To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Tim Lucia
I have always responded with this http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html when this question comes up. It explains the most common ways to find and load resource files. It does not get specifically into servlets, however, or ServletContext.getResource[AsStream

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Asaf Lahav
Well, Obviously I tried it. The more interesting question is whether the default configuration tomcat comes with permits writing files, and second is what should I look into at our customers servers in order to make sure write/edit capabilities are possible? Asaf Lahav VP R&D, Prima Grid LTD. Ce

Re: Application configuration: how to read files from a web application

2006-05-17 Thread Mark Petrovic
Asaf, hello. Good question and I don't know of any best practices. Others here may. With the default security policy (running without "-security") I have not attempted to write data from a web application, excluding of course activities such as log messages or writing to sockets connected to a

RE: Problem with apache tomcat

2006-05-17 Thread Devireddy, Nagendra Reddy (STSD)
Hi, Tomcat 5.0.x works with JRE .. JDK is not required !! But There are some issues with jre edition 1.3. Try installing jre 1.5 and try Thanks, Nagendra -Original Message- From: Gaƫl Lams [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 6:48 PM To: Tomcat Users List Subject: Re:

RE: Application configuration: how to read files from a web application

2006-05-17 Thread Asaf Lahav
Hi Mark, Is there a best practice for also writing/updating configuration file from within the application? Asaf Lahav VP R&D, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax: 972-3-6540254 -Original Message- From: Mark Petrovic [mailto:[EMAIL PROTECTED

Re: Reloadable context

2006-05-17 Thread Rajeev Jha
No idea on what you are missing. you try reloading the application from tomcat manager application. that works for me. Atleast you save the restart trouble. Akoulov, Alexandre [SB] wrote: Hi , So I've got to restart tomcat to get my change deployed. Any idea on what I am missing? -

Re: Max. Concurrent User for Tomcat

2006-05-17 Thread Rajeev Jha
Answer is : it depends. 1) Depends on the kind of settings you have in your configuration file. some limits would be compiled-in and some limits may not be honored because of 2) Depends on the kind of OS/kernel you are running. e.g, you can say run unlimited threads in config file, but the OS

Re: AppBase

2006-05-17 Thread Alexander E Genaud
Hej Dirk, In catalina.base you have a directory called conf which contains a file server.xml. Here you have settings for your Host(s). By default you have "localhost" with an appBase="webapps". By default, the webapps directory is a sibling of conf. The webapps directory lets you drag and drop we