RE: Please Help

2003-06-16 Thread Barney Hamish
It sounds like you don't have an entry for the j_security_check in your uriworkermap.properties file. IIS doesn't know that it needs to forward the request for that page to tomcat... add something like this /webapp/j_security_check=$(default.worker) and restart the web publishing service. Hamish

RE: instance names problem will pay $2 for solution

2003-04-02 Thread Barney Hamish
May I suggest you have a look at the Java Reflection package... java.lang.reflect also the java.lang.Class class, class.forName() will be of interest to you. -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 12:24 PM To: [EMAIL PROTECTED]

RE: instance names problem will pay $2 for solution

2003-04-02 Thread Barney Hamish
Is there are reason you can't just use: session.setAttribute(tempName); and then later session.getAttribute(tempName);??? Hamish -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 1:11 PM To: [EMAIL PROTECTED] Subject: Re: instance names

RE: Mime-Type

2003-03-03 Thread Barney Hamish
Remember to set the appropriate mime type for javascript (text/javascript) and css (text/css) files too. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 4:45 PM To: 'Tomcat Users List' Subject: RE: Mime-Type JSPs are never served to

RE: DEBUG JSP

2003-02-20 Thread Barney Hamish
If your JSPs are so complicated that you need a debugger then I would seriously consider cutting out some of your java code and putting it into java beans that you access from your JSPs. It's much better practice to have JSPs that are only responsible for the view. Hamish -Original

RE: Solved it. Re: mod_jk virtual hosts ? 90% of the way there.

2003-02-18 Thread Barney Hamish
Look at the link again! You're missing the part that was chopped off at the end of the line... -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 9:18 PM To: Tomcat Users List Subject: Re: Solved it. Re: mod_jk virtual hosts ? 90% of the

RE: Login problems (still)

2003-02-14 Thread Barney Hamish
use the Session.invalidate() method Try looking at the j2ee api. Hamish -Original Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 2:46 PM To: Tomcat Users List Subject: Re: Login problems (still) What is the best way to go about

RE: Form based security

2003-02-13 Thread Barney Hamish
Are you going directly to the login page? If so then you need to go to a page in that's listed as being secure. You will then be forwarded to the login page. When you've logged in successfully then you will be forwarded to the page you originally requested. Hamish -Original Message-

RE: java/jsp dynamic data

2003-02-13 Thread Barney Hamish
I saw an interesting article about this recently about using javascript to do RPC using an iframe. You could either use this as a pure HTML solution or use it in conjunction with a java applet to solve your problem. http://www.oreillynet.com/pub/a/javascript/2002/02/08/iframe.html Hamish

RE: Form based security

2003-02-13 Thread Barney Hamish
page. How do I list a page as secure? Do I have to wirte code for the j_security_check or is this something within tomcat? - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 9:50 AM

RE: Form based security

2003-02-13 Thread Barney Hamish
. Time for me to learn struts now I guess... -- Sloan - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 10:33 AM Subject: RE: Form based security I think you've got the wrong idea about

RE: get User object from tomcat

2003-02-13 Thread Barney Hamish
You can't. You need to go and retrieve whatever other info from your database yourself probably using the username as the primary key. Hamish -Original Message- From: fangfang cai [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 6:01 PM To: Tomcat Users List Subject: RE:

RE: How to configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Barney Hamish
Unless tomcat is running on port 80 (the default port for HTTP) the URL _must_ include the port number otherwise the browser assumes that the webserver is running on Port 80 (which is apparently not the case). Try configuring tomcat to run on port 80 instead of 8080 (or whatever you've got it set

RE: export exel stylesheets from jsp

2003-02-06 Thread Barney Hamish
I assume you mean spreadsheet and not stylesheet... Unless you really need something complicated from excel why don't you just send a csv (comma seperated values) file. Excel can open CSV files like normal excel format spreadsheets. -Original Message- From: Power-Netz (Schwarz)

RE: Could this be a Tag Libs implementation bug?

2003-02-04 Thread Barney Hamish
Have you considered using the struts logic tags (http://jakarta.apache.org/struts/index.html) or the JSTL (http://jakarta.apache.org/taglibs/index.html) rather than implementing this stuff yourself? There are some useful custom tags (like the iterate tag you're trying to implement). Hamish

RE: form based authentication problem

2003-02-04 Thread Barney Hamish
I did something like that using struts. I wrote a base action class which all my other action classes extended. The base class performs any initialization (initializing objects in the session etc) as required. If you don't want to use struts you might consider using a filter. Hamish

RE: debugging help

2003-01-31 Thread Barney Hamish
Try running tomcat as a service rather than from the command line directly that way all stdout should be redirected to your logs. Hamish -Original Message- From: Geoff Peters [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 2:52 PM To: [EMAIL PROTECTED] Subject: debugging

RE: Context problem, urgent!

2003-01-30 Thread Barney Hamish
It sounds like you're running ant from the wrong directory... Try running Ant from the directory where the Tomcat build.xml is. Hamish -Original Message- From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 11:59 AM To: 'Tomcat Users List' Subject:

RE: Context problem, urgent!

2003-01-30 Thread Barney Hamish
W2k, why it tried to download tar.gz? -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:13 To: 'Tomcat Users List' Subject: RE: Context problem, urgent! It sounds like you're running ant from the wrong directory... Try running Ant

RE: Context problem, urgent!

2003-01-30 Thread Barney Hamish
ansform.TransformerFactoryConfigurationError: Provider for javax.xml.transform.T ransformerFactory cannot be found Which lib file is missing? Thanks in advance. -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 30. tammikuuta 2003 13:53 To: 'Tomcat Users List' Subject: RE: Context

RE: Tomcat/Weblogic!!...

2003-01-29 Thread Barney Hamish
Weblogic and Tomcat do the same thing! They are both java servlet containers... It might make sense to integrate Tomcat with Apache or Weblogic with Tomcat but _not_ weblogic and Tomcat. -Original Message- From: Ramkumar Krishnan [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05,

RE: username as a variable?

2003-01-24 Thread Barney Hamish
see the j2ee documentation on the request object... There is the method getRemoteUser() -Original Message- From: Shah, Sanjay [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 6:28 PM To: 'Tomcat Users List' Subject: username as a variable? Is there a way to catch

RE: MySQL Hell

2003-01-22 Thread Barney Hamish
I'd suggest looking at the comments in the examples for DBCP about how the examples need to be run. The required JDBC driver needs to be pre-loaded for it to work. If you have any further questions you should probably send them to the commons mailing list. Hamish -Original Message-

RE: Doing something on the server when user session expires

2003-01-21 Thread Barney Hamish
Try defining a finalize method in an object that resides in the user's session. When the session is destroyed that object's finalize method will be called. Hamish -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 11:31 AM To: 'Tomcat

RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
Are the class files you're trying to use in your /WEB-INF/classes/ directory or in a jar in your /WEB-INF/lib/ directory? Have you tried using the jsp:useBean tag? -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 2:12 PM To: Tomcat Users List

RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
: Thursday, January 16, 2003 2:37 PM To: Tomcat Users List Subject: Re: JSP fine but no Java. The classfiles are in the right place. That tag is what's being used. Andoni. - Original Message - From: Barney Hamish [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent

RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
(validate$jsp.java, Compiled Code) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java , Compiled Code) jsp:useBean id=merchandise scope=application class=com.company_name.javaBeans.MerchandiseBean/- Original Message - From: Barney Hamish [EMAIL PROTECTED

RE: Sharing an object between servlets

2002-10-04 Thread Barney Hamish
Can't you use a session/request scope object? However it's not clear to me why you need to share the variables between the servlets without having them communicate directly. Hamish -Original Message- From: Vijay Kandy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 4:28 PM

RE: How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Barney Hamish
In the web.xml you can define a url pattern for servlets, eg: servlet servlet-namemyServlet/servlet-name url-pattern/directory/*.xml/url-pattern servlet-classclass.MyServlet/servlet-class /servlet See the servlet spec from sun for

RE: Debugging servlets

2002-09-26 Thread Barney Hamish
Have a look at log4j -Original Message- From: Mohan,Gautam [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 10:09 AM To: [EMAIL PROTECTED] Subject: Debugging servlets Hi, I want to know is debugging servlets possible in Tomcat(version 4) . If yes then how to go

RE: Tomcat Connection pooling

2002-09-23 Thread Barney Hamish
Be careful if you decide to use DBCP with SQL Server. I found SQL Server drops open connections every 10 minutes or so, even while you're in the middle of retrieving query results!!! (so the verify connection thing doesn't work) DBCP needs some way of automatically dropping and recreating

RE: Tomcat Connection pooling

2002-09-23 Thread Barney Hamish
pooling If DBCP is a problem, then do you have a working example of how i can use it with PoolMan? Amitabh -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 9:50 AM To: 'Tomcat Users List' Subject: RE: Tomcat Connection pooling

RE: tomcat 4.0.2/ SQL server 2000/ IIS 5.0 crashes

2002-09-23 Thread Barney Hamish
Have a look at the list archives _before_ posting a question. You would have noticed that this question has been answered many times. The JDBC-ODBC bridge from sun is not thread safe and is liable to crash like that periodically. There's a free JDBC driver available from Microsoft or other 3rd

RE: Realtime Log File Viewer

2002-09-20 Thread Barney Hamish
Is your server on Windows or *nix? Have you tried tail? That allows you to view the last X lines of the log in real-time. Hamish -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 10:48 AM To: Tomcat Mailing List Subject: Realtime Log

RE: Reloading .jsp-Pages

2002-09-18 Thread Barney Hamish
Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile them. An alternative is to delete everything in the work directory and restart tomcat forcing it to recompile all jsps. Hamsih -Original Message- From:

RE: RE: Reloading .jsp-Pages

2002-09-18 Thread Barney Hamish
- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 18. September 2002 14:34 An: 'Tomcat Users List' Betreff: RE: Reloading .jsp-Pages Usually you need to touch the files updated files somehow after copying them otherwise tomcat doesn't know that it needs to recompile

RE: JDBCReal / MySql /server.xml problem

2002-09-05 Thread Barney Hamish
In xml you can't just write because it has special meaning. It's used to escape special characters. To get an you'll have to write amp;password=foo Hamish -Original Message- From: Howard Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 12:39 PM To:

RE: jk_nt_service.exe

2002-09-05 Thread Barney Hamish
Are the stderr and stdout log files being created? -Original Message- From: Meagher, Joe [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 12:47 AM To: '[EMAIL PROTECTED]' Subject: jk_nt_service.exe I know this is probably an old and dead issue for most of you

RE: global.jsa

2002-09-04 Thread Barney Hamish
about it. Do you know the syntax of the top of your head for specifying an onStartup servlet in the web.xml file? Thanks for your help. Neal -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 2:14 AM To: 'Tomcat Users List

RE: global.jsa

2002-09-03 Thread Barney Hamish
You can use the WEB-INF/web.xml to similar effect or you can also declare objects to have application scope, then you have a global object that you can access anywhere. Hamish -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 10:15 AM To:

RE: global.jsa

2002-09-03 Thread Barney Hamish
... but can you instantiate objects there? Can you specify scope of those objects or will it presume application scope? THanks. Neal -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 1:30 AM To: 'Tomcat Users List' Subject: RE

RE: tomcat XML

2002-08-30 Thread Barney Hamish
If you put them somewhere in accessible to your class path you can load them as resources. ie /foo/my.xml classpath= /foo/ etc -Original Message- From: Mubaraka Arif [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: tomcat

RE: Easy to read HOWTO's or anything similar?

2002-08-29 Thread Barney Hamish
The server.xml that comes with Tomcat itself is pretty well documented. Why don't you just step through that and read the comments? Hamish -Original Message- From: Mitchell, Edmund [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 2:39 PM To: 'Tomcat Users List' Subject:

DBCP Problems

2002-08-29 Thread Barney Hamish
Hi, Just started using DBCP(1.0) to do my DB connection pooling but have two problems: The connection keeps dropping out. I keep recieving SQL exceptions saying the connection is closed, sometimes in the middle of retrieving my query results. eg. java.sql.SQLException: Connection is closed. I

RE: Redirects by TOMCAT in server.xml?

2002-08-25 Thread Barney Hamish
Can you perhaps write a little servlet that forwards a request to a new address (a string defined in the web.xml) and then map the servlet to the url pattern you want. i.e. url pattern for servlet /COLANgamma/* then the servlet takes the request string (whatever is after the url pattern for the

RE: Redirect!

2002-08-22 Thread Barney Hamish
There are a couple of ways you can do this: -Add a redirect header to your page 3XX (see rfc2616) -Use jsp:forward tag -Client side with javascript But it really depends what you want to do exactly. Hamish -Original Message- From: Alexander Schmidt [mailto:[EMAIL PROTECTED]] Sent:

RE: Realms advise.

2002-08-16 Thread Barney Hamish
The only way I thought of to get around this problem was to prefix usernames with the other field. In your case login form has three fields, username, password and office and you have a javascript that concatenates the office number to the username when the user submits the login form... we have

RE: forward to TOP-Frame

2002-08-14 Thread Barney Hamish
You can't solve this with forward. You need to do this client side with either javascript or by changing whatever link the user clicks on to to include a target. Hamish -Original Message- From: Harry Knörrer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 11:27 AM To:

RE: forward to TOP-Frame

2002-08-14 Thread Barney Hamish
-Frame This is a problem cause the forward should happen when the session is invalid. I check this in my controller.jsp -Ursprüngliche Nachricht- Von: Barney Hamish [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. August 2002 11:29 An: 'Tomcat Users List' Betreff: RE

RE: Login problem with reverse proxy

2002-08-13 Thread Barney Hamish
this very problem (despite what our firewall people told me *grrr*). http://httpd.apache.org/docs/mod/mod_proxy.html#proxypassreverse ProxyPassReverse directive This directive tells apache to modify redirects to point to the reverse proxy instead. Hamish -Original Message- From: Barney

Login problem with reverse proxy

2002-08-09 Thread Barney Hamish
Hi, I'm using tomcat 3.2 with form based login and an apache reverse proxy to filter requests to the webserver. When tomcat issues the redirect to the login page the users are sent directly to the webserver not the reverse proxy. As the webserver is not directly accessable they are unable to

RE: Problems getting login to work

2002-08-09 Thread Barney Hamish
The login page shouldn't be referred to directly. The standard states that when a user first tries to access a resource secured by a security constraint then they will be forwarded to the login page. Don't put the login form in you index.jsp.. or have your index.jsp being secure so that the user

RE: Login problem with reverse proxy

2002-08-09 Thread Barney Hamish
Barney Hamish Hamish.Barney@ect-teTo: '[EMAIL PROTECTED]' lecoms.de [EMAIL PROTECTED] cc: 09/08/2002 11.32 Subject: Login problem with reverse proxy

RE: How to set the content type from JSP?

2002-07-31 Thread Barney Hamish
%@ page contentType=... % Check the jsp syntax! http://java.sun.com/products/jsp/ -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: How to set the content type from JSP? Hi, how can I set the

RE: Request forwarding to a specific target frame?

2002-07-25 Thread Barney Hamish
I don't think this is possible as the webserver doesn't care about which browser frame responses are being sent to. Is there are reason this can't be done client side by specifying a target for the link the user is clicking on (or whatever triggers the response in the first place)? Hamish

RE: Tag Iterate and jsp:include

2002-07-18 Thread Barney Hamish
As the error message says it's illegal to perform a flush while you're in a custom tag. Try setting the flush attribute to false explicitly i.e.: jsp:include page=%=my_id.getJspName()% flush=false / It could be that flush has different default values for the development version and your

RE: Tag Iterate and jsp:include

2002-07-18 Thread Barney Hamish
Forgot to mention if that still doesn't work then you can stop using the custom tag for the loop and write java code to iterate over my_property. -Original Message- From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 11:10 AM To: [EMAIL PROTECTED]

RE: help me

2002-06-12 Thread Barney Hamish
JAVA_HOME should be set as c:\jdk1.3 not c:\jdk1.3\bin Hamish -Original Message- From: siva murugan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 2:24 AM To: [EMAIL PROTECTED] Subject: help me Sir/Madam, Fine and expect the same from U and all. Iam SivaMurugan from

RE: Security problem?

2002-06-07 Thread Barney Hamish
This is one way, there are probably others. By using encryption you can make such a transaction secure. If site X is where they buy the thing and site Y is your site: You could get site X to pass two things: - the amount of money the user is to pay in clear text - the amount of money the user is

RE: Security problem?

2002-06-07 Thread Barney Hamish
key. Both can be used to encrypt the data in analogous ways. -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:14 AM To: Tomcat Users List Subject: Re: Security problem? On 6/7/02 1:54 AM, Barney Hamish [EMAIL PROTECTED] wrote

RE: Security problem?

2002-06-07 Thread Barney Hamish
files were unencrypted, and that the process of signing generates a sort of MD5-style one-way hash and this is verified against the x.509. Is this wrong? Just as Barney Hamish pointed out, with RSA (and I think DSA) keys, you can encrypt/decript both ways. It is just that these two modes

RE: Bypassing user role assignment???

2002-06-04 Thread Barney Hamish
Why don't you set the user roles table to be the same as the users table. Have a user_role field in the users table with a default value default role or something. That way when you create a new user a role is automatically created for them with the role of default role. Then you don't have to

RE: problem with jsessionid

2002-05-28 Thread Barney Hamish
Just some ideas: -Did you restart tomcat on your production machine after copying the files? - Are you using the same browser to view both machines? Is there a reason cookies wouldn't be accepted when you're browsing the production site? Hamish -Original Message- From: [EMAIL PROTECTED]

RE: Jsp window opener

2002-05-16 Thread Barney Hamish
I'm not exactly clear on what you're trying to do from your description. From what I understand from your question it should be possible to do what you're attempting by using either a session bean. THis will allow you to store the values in your field across multiple requests. Alternitively if

RE: help, JDBCRealm, Why Need to authenticate three times to login

2002-05-07 Thread Barney Hamish
If I were you I'd check the error logs or the jvm.stdout or whatever. It could be that there is a problem creating the connection to the database to authenticate the user. If this is the case there should be error messages indicating problems connecting to the database. -Original

RE: Tomcat, IIS and JavaService Problem

2002-04-16 Thread Barney Hamish
What driver are you using for your database connections. The most common cause of Tomcat crashes like you describe is the use of the JDBC-ODBC bridge. -Original Message- From: Daniel Tamborelli Alvarenga [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 6:55 PM To: Tomcat Users

RE: TC hidding console

2002-04-12 Thread Barney Hamish
Why don't you just run Tomcat as a service. Then you'll never see the console. -Original Message- From: RAYMOND Romain [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 1:45 PM To: Tomcat Users List Subject: TC hidding console Hello, is there a way under Windows2000 to hide TC

RE: someone....need help!!!!....

2002-04-09 Thread Barney Hamish
Try touching the JSPs before you run them to make sure that the timestamp is changed so tomcat knows to re-compile the JSP. -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 5:37 PM To: Tomcat Users List Subject: Re: someoneneed

RE: Apache/Tomcat security issue -- URGENT

2002-03-21 Thread Barney Hamish
I had a similar problem. I kept the files out of the webapps folder. I wrote a servlet that checks the username before serving up the file. If the user has access to the file then it sends it otherwise it blocks access. Hamish -Original Message- From: Surya Suravarapu [mailto:[EMAIL

RE: Tomcat 4.0 and IterationTag

2002-03-18 Thread Barney Hamish
Although this doesn't address the problem you're having with your tag, you should consider using the Struts tag library. The Iteration Tag in the logic tags does exactly what you want and it's been tested extensively. http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html#iterate Hamish

RE: RealmJDBC question

2002-03-08 Thread Barney Hamish
The queries tomcat uses are hardcoded. Given the way JDBC Realms are implemented on Tomcat you've only got two choices: 1. Modify the existing org.apache.tomcat.request.JDBCRealm to use the query you want it to use. 2. Write your own request interceptor from scratch. Have a look at the source

RE: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION

2002-03-06 Thread Barney Hamish
Rather than writing your own, maybe you should think about using the Struts framework (also part of the Jakarta project). This allows you to configure page flow etc centrally. Hamish -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:32 PM To:

RE: Tomcat startup.bat does not work?

2002-03-05 Thread Barney Hamish
The Error message tells you what the proplem is: ... Error creating server socket = (java.net.Bind Exception): java.net.BindException: Address already in use:... Tomcat can't listen on the socket it wants to because some other application is already using that socket. Either find out which

RE: Avoiding 'servlet' as part of the URL

2002-02-28 Thread Barney Hamish
You can set up aliases for servlets in the web.xml but the servlets still have to reside in the WEB-INF directory. Have a look at the documentation for the web.xml file. -Original Message- From: Thomas Stiller [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 2:28 PM To:

RE: configuring additional servlet path

2002-02-28 Thread Barney Hamish
Have a look at the servlet specifications from sun that correspond to your version of Tomcat. They tell you what you need to add to your web.xml to set up user-defined mappings to servlets. Hamish -Original Message- From: Uri Shohet [mailto:[EMAIL PROTECTED]] Sent: Thursday, February

RE: Testing servlets

2002-02-27 Thread Barney Hamish
By installing Tomcat on the local machine exactly as you would on the remote machine! -Original Message- From: Kevin Chen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 9:40 AM To: [EMAIL PROTECTED] Subject: Testing servlets If it's possible, how can I use Tomcat to test

RE: Sense of realm element in login-config

2002-02-27 Thread Barney Hamish
It's not clear what you want to know. Perhaps you should take another look at the documentation. You can authenticate people against a database, the XML file is just a simple example. From a servlet you can find out what username they logged in as and which realms they have access too. What

RE: Apache does not load images!!

2002-02-27 Thread Barney Hamish
It's hard to diagnose your problem without more details. Which pictures aren't loading when you go via port 80? Which ones are? My first suggestion would be to check your uriworkermap.properties file. -Original Message- From: Eswar.K [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February

RE: Apache does not load images!!

2002-02-27 Thread Barney Hamish
Sorry, my mistake. I misread your message thought you were using IIS Hamish -Original Message- From: Eswar.K [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:40 AM To: Tomcat Users List Subject: Apache does not load images!! Importance: High hi guys, My system

RE: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2

2002-02-21 Thread Barney Hamish
It sounds like your problem is that the redirect dll doesn't know about your servlet. If you don't refer to the servlet as /myApp/servlet/myServlet but rather as /myApp/myServlet then you must include a mapping to that servlet in your uriworkermap.properties like:

RE: How to access a remote file?

2002-02-20 Thread Barney Hamish
Check what account you're starting tomcat under or what account the Tomcat service is being run under. Does that account have access to the drive you're trying to access. -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 4:45 PM To: '[EMAIL

RE: Tomcat as a service...

2002-02-19 Thread Barney Hamish
And what do you have set in your wrapper.properties file? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:14 PM To: Tomcat Users List Subject: RE: Tomcat as a service... What do you mean by my Network config? I have tried it at

RE: Tomcat as a Windows Service on Windows 2000?

2002-01-18 Thread Barney Hamish
Exactly the same thing! -Original Message- From: Kinander Jan [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 9:48 AM To: '[EMAIL PROTECTED]' Subject: Tomcat as a Windows Service on Windows 2000? I have read an instruction by Gal Shachor on page

RE: Tomcat vs. RH 6.2

2002-01-18 Thread Barney Hamish
The instructions on how to build tomcat (provided with the tomcat source) detail where to get the XML parser and all the other stuff you need. -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 5:28 PM To: Tomcat Users List Subject: RE: Tomcat

RE: Form-based login from html-page

2002-01-15 Thread Barney Hamish
You can use realm based authentication to acheive what you want to do. See the Tomcat documentation http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html and the Servlet specifications http://java.sun.com/products/servlet/download.html for more information -Original Message-

RE: Form-based login from html-page

2002-01-15 Thread Barney Hamish
login.jsp one.jsp via form-based login - Pete -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: 15. januar 2002 12:13 To: 'Tomcat Users List' Subject: RE: Form-based login from html-page You can use realm based authentication to acheive what you want to do. See

RE: Form-based login from html-page

2002-01-15 Thread Barney Hamish
are restricted, (well, except from login.jsp and error.jsp) and html-files are public. What I would like to achieve is, having a form on index.html where people type in their usernames, clicks log in and then they are at one.jsp - Peter -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED

RE: Problems with TOMCAT_HOME during installation

2002-01-10 Thread Barney Hamish
As it says check what you have for the TOMCAT_HOME environment variable. You should also try starting it from your TOMCAT_HOME directory instead (i.e. so you write bin/startup). Hamish -Original Message- From: Tomas Nilsson [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002

RE: How to find a file from a class with Tomcat

2001-12-19 Thread Barney Hamish
Why don't you put it in the web.xml context-param param-namedirectory/param-name param-value[my directory]/param-value /context-param Then you can grab it from your servlet with a get Context Parameter call. -Original Message- From: Stephan Wiesner [mailto:[EMAIL

RE: Where to place JDBC drivers? How?

2001-11-28 Thread Barney Hamish
You need to make sure you put a reference to the driver location in your class_path variable. Where you need to do this depends on how you're running tomcat, modify the environment classpath variable or in the worker.properties file, or in the wrapper.properties file etc -Original

RE: Where to place JDBC drivers? How?

2001-11-28 Thread Barney Hamish
or in the lib folder... Could you help me out with a little more specifics towards the worker, wrapper etc ... -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 11:07 AM To: 'Tomcat Users List' Subject: RE: Where to place JDBC drivers? How

RE: Create JSP file or a Servlet file for web browser.

2001-11-27 Thread Barney Hamish
You can use whatever tools you want to create HTML pages and then rename them to .jsp and add whatever dynamic JSP stuff you want. JSP files are just HTML documents with a bit of scripting added to them. -Original Message- From: renyu teng [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

RE: This would be cool in tomcat as well...

2001-11-17 Thread Barney Hamish
Velocity is part of the Jakarta project of which Tomcat is one part. You can use this syntax already by using Velocity with Tomcat. http://jakarta.apache.org/velocity (I think, I can't get to the website to check) -Original Message- From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]]

RE: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Barney Hamish
There is documentation on setting up JDBC authentication/JDBC Realms: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html One thing I found that wasn't documented you need to add /app name/j_security_check=$(default.worker) to your uriworkermap.properties file so that the request is

RE: Authentication with Tomcat 3.2 and IIS4

2001-11-16 Thread Barney Hamish
There is also a simple xml file authentication method that Tomcat uses by default. You just add log-ins to an xml file. I believe there is an example included with the Tomcat download (examples/jsp/security I think) Hamish -Original Message- From: Samuel Rochas [mailto:[EMAIL

RE: Drivers

2001-11-15 Thread Barney Hamish
They have a database of JDBC drivers on the Java website http://industry.java.sun.com/products/jdbc/drivers You can search there for a JDBC driver that matches your requirements -Original Message- From: Law Kim Soon [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 1:30 PM To:

RE: Update JSP

2001-10-25 Thread Barney Hamish
You shouldn't actually need to do anything to get tomcat to recompile the page (assuming you don't have automatic compilation turned off). Just request the page and tomcat should recompile it for you. If that doesn't work shutdown tomcat, delete all the files in the $tomcat_home/work directory

RE: tomcat 4.0: Plug in custom Realm

2001-10-25 Thread Barney Hamish
You'll notice in the realm file there is a line that gives the class of the JDBC Realm interceptor you're using. You should replace this class name with the name of whatever inteceptor you want to use. ie, change the line: className=org.apache.catalina.realm.JDBCRealm to className=my.FooBarRealm

RE: JDBC Drivers

2001-10-23 Thread Barney Hamish
Denis, I believe Oracle provides drivers for all their Databases on their website. I can't remember where exactly but I'm sure if you have a bit of a look around you'll be able to find them. Hamish -Original Message- From: The Duke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23,

RE: Logging from a servlet in Tomcat

2001-10-19 Thread Barney Hamish
I haven't tried this in 4 but in 3 you can always just print to stdout or stderr eg. System.out.println(In the Foo function); Which will get printed to the console or your logs depending on how you're running tomcat -Original Message- From: Dr. Evil [mailto:[EMAIL PROTECTED]] Sent:

  1   2   >