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


 -Original Message-
 From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 5:56 PM
 To: Tomcat
 Subject: Please Help
 
 
 Hi,
  
 I'm still having some issues with the j_security_check if 
 anyone could help me with what is going wrong. I'm using 
 Tomcat 4.1.18, and Windows 2000 pro. I created the constraint 
 in the web.xml file and it's working fine on localhost:8080. 
 However, when I change over to a virtual directory under IIS 
 and type www.domain.com/webapp/login.jsp and submit the form 
 I get a Page cannot be displayed error:
 p
 The page you are looking for cannot be displayed because the 
 page address is incorrect. 
 p
 And the url stays as: 
 http://www.domain.com/webApp/j_security_check and not 
 directing over to the requested resource.
 p
 Please help, I need to get this done fairly soon.
  
 Thanks,
 Lior
 
 
 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]
 Subject: instance names problem will pay $2 for solution
 
 
 i will pay $2 usd if you can solve my problem.  i'll send 
 check by mail or 
 paypal.
 
 my problem is i have a String variable s which stores the name of the 
 instance i want to create.  how do i convert that variable to 
 java code so 
 that i can use it in my java code.
 
 for instance
 
 this is what i want to do
 
 blue.use();
 red.use();
 
 but have somethign like
 s = blue;
 something(s).use();
 s = red;
 something(s).use();
 
 which does the samething as above
 
 mike
 
 
 _
 Protect your PC - get McAfee.com VirusScan Online  
 http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 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 problem will pay $2 for solution
 
 
 jsp:useBean id=temp scope=request 
 class=beangame.GameInstance /
 jsp:setProperty name=temp property=* /
 
 
 %
   String tempname = temp.getInstance_name();
 
   beangame.Earthquake counter1 = 
 (beangame.Earthquake)getServletContext().getAttribute(tempname);
   if (counter1 == null) {
   out.println(is null p);
   counter1 = new beangame.Earthquake();
   getServletContext().setAttribute(tempname, counter1);
   }
 
 %
 
 This is a snippet from my code basically im trying to create 
 an instance of 
 an application scope bean but naming it myself with the 
 stored value of 
 tempname which i get from another bean temp using getInstanceName()
 
 how do I apply reflection so I can use the instance which 
 name is not in the 
 code at all.
 
 mike
 
 _
 The new MSN 8: smart spam protection and 2 months FREE*  
 http://join.msn.com/?page=features/junkmail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: 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 a browser as JSP.  They generate 
 output.  That
 output has the appropriate MIME type, such as text/html for typical
 scenarios.  Other MIME types used are image MIME types and 
 MIME types for
 things like spreadsheets, word processors, and other external 
 applications.
 If JSP source code is served to a browser with the intention 
 of displaying
 the JSP code, such as in a tutorial or HOWTO document, the 
 MIME type would
 typically be standard text.
 
 John
 
  -Original Message-
  From: Anthony Smith [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 03, 2003 10:36 AM
  To: Tomcat Users List
  Subject: Mime-Type
  
  
  I did not know where ask to else this question.
  
  Is there a mime-type for a jsp? If so, what is it?
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 Message-
 From: João Augusto Charnet [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 20, 2003 12:35 PM
 To: Tomcat Users List
 Subject: DEBUG JSP
 
 
 Hello.
 I'd like to know if any one has actually been able to 
 configure Tomcat 
 to debug JSP, and not just Servlets or other Java Classes?
 Everybody that helped so far gives me some intruction but 
 tells me that 
 they have not tested the instructions. I've done everything 
 I've found 
 about this topic.
 Switched to OJSP (Oracle JSP compiler) and still got nothing.
 I'd like to know if any one DID configure tomcat and TESTED 
 it to Debug JSP.
 
 Thanks a lot...
 Sincerely,
 John
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 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 
 way there.
 
 
 That is what I have:
 
 
   Not Found
 
 The requested URL /tomcat/tomcat-4.1-doc/jk2/jk2/config was 
 not found on 
 this server.
 
 --
 --
 Apache/2.0.44 (Unix) Server at jakarta.apache.org Port 80
 
 
 
 
 [EMAIL PROTECTED] wrote:
 
 Works perfectly for me.
 
 John
 
 
   
 
 -Original Message-
 From: sunisson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 18, 2003 3:05 PM
 To: Tomcat Users List
 Subject: Re: Solved it. Re: mod_jk virtual hosts ? 90% of the 
 way there.
 
 
 This link is broken.: 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
 howto.html
 
 
 [EMAIL PROTECTED] wrote:
 
 
 
 Hi RK,
 
 I thought my workers.properties file looked very different
 from everybody else's using mod_jk2 !
 
 I just checked again and realize I misread the page
 
   
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config
 howto.html
 
 
 I actually put the following in jk2.properties instead of in 
 workers2.properties -
 
 _jk2.properties
 # Define the communication channel
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 tomcatId=localhost:8009
 # Map the Tomcat examples webapp to the Web server uri space
 [uri:/examples/*]
 info=Map the whole webapp
 --
 
 and the really strange thing is that it all worked 
 
 My workers.properties looks very different from everybody
 else's but it also works fine
 
 _workers.properties___
 worker.list=worker1
 # Set properties for worker1 (ajp13)
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=8009
 worker.worker1.lbfactor=50
 worker.worker1.cachesize=10
 worker.worker1.cache_timeout=600
 worker.worker1.socket_keepalive=1
 worker.worker1.socket_timeout=3
 --
 
 Is the mod_jk2.so backwards compatible ?
 I'm also using the mod_jk-1.3-noeapi.so file from
 
   
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk
/release/v1.2.1
/bin/solaris8/ 
  

which was linked from the jk2 FAQ
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/faq.html
Or is the link in the FAQ incorrect ?

It's going to hurt if I've somehow managed to use mod_jk1 as
opposed to mod_jk2 :(

Soefara.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  


-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 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 invalidating a session?
 
 Do I just go through the HttpSession object nulling 
 everything or do I null
 objects in the java.security.Principal object?
 
 Thanks!
 
 --
 Sloan
 
 - Original Message -
 From: Filip Hanik [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 5:38 PM
 Subject: RE: Login problems (still)
 
 
 for logout, you can simple invalidate your session.
 
 if you need to keep the session around after invalidating it, 
 just create a
 new one and populate data to it
 
 Filip
 
 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 2:40 PM
 To: Tomcat Users List
 Subject: Login problems (still)
 
 
 Ok, so I kind of have login authentication working to where I 
 want it to
 work.
 
 But here is the next question?
 
 How do they logout/login again?
 
 What I did was have an index.jsp page have a link to a 
 location within a
 security-context.  So if they click on it it asks them to 
 login and then
 forwards them to the proper place.  Works great.
 
 Now, say I go back to the main index.jsp page and I want to 
 login a someone
 else.
 
 Since I have already logged in as one person I clear the 
 security check and
 go right to the page instead of getting the login page.
 
 If I have a link directly to the login page I start getting 
 the invalid
 direct reference error.
 
 Should I just write a loginAction in struts and be done with 
 it?  If so, how
 can I get to the realm information?
 
 Thanks!
 --
 Sloan
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 3:48 PM
 To: [EMAIL PROTECTED]
 Subject: Form based security
 
 
 I'm attempting to do form based security and I keep getting a 
 404 error when
 I click the submit button.
 
 I'm guessing I'm missing some type of configuration in the 
 server.xml.
 
 The form I am using is:
 form method=POST action=j_security_check
   input type=text name=j_username/
   input type=password name=j_password/
   input type=submit value=Submit
 /form
 
 
 And I have the following in my web.xml
  login-config
  auth-methodFORM/auth-method
   form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/login-error.jsp/form-error-page
   /form-login-config
  /login-config
 
 Can anyone help me out here?
 
 --
 Sloan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 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

 -Original Message-
 From: Jim Henderson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 3:46 PM
 To: 'Tomcat Users List'
 Subject: RE: java/jsp  dynamic data
 
 
 
 I have wondered about using RMI over the Internet before.  I 
 have an in
 house WEB Start application that uses RMI.  But it requires 
 the server to
 have most of its ports almost wide open (in addition to 
 1099).  Doesn't it?
 Leaving open Internet vulnerabilities.  Maybe my 
 understanding of RMI is a
 little fuzzy.
 
 Can someone clarify this?
 
 -Original Message-
 From: Mike Jackson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 11, 2003 4:31 PM
 To: Tomcat Users List
 Subject: RE: java/jsp  dynamic data
 
 
 You could look into doing an applet with rmi back to the 
 server it came
 from.  Or do an EJB message bean, where the message queue is 
 the server that
 the applet came from (don't know if you can do this, but it's 
 like that you
 can).
 
 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]
 
  -Original Message-
  From: Jeff Ousley [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 11, 2003 12:08 PM
  To: 'Tomcat Users List'
  Subject: java/jsp  dynamic data
 
 
  All,
 
  I'm sorry to bring this up again, but I'm just not
  seeing clearly and maybe someone here could help.
 
  I need to write an application that displays in a web
  browser some data that will change from second to
  second. I have to use java in some form. I'm tied to
  the jtapi packages.
 
  I thought that jsp would be a good way to go, but I
  find that I'm limited in that jsp provides no way to
  refresh what is on the screen in a near real-time
  fashion. Past answers on this newsgroup have suggested
  the meta refresh tag, or using hidden frames and
  javascript to do periodic refreshes.
 
  I though maybe an applet would suit my needs, but it
  needs to access data on remote hosts. Doesn't the
  applet security prevent this?
 
  There has to be a good way to accomplish this using
  java and I was hoping I could do I with jsp somehow.
  Does anyone have any other ideas or suggestions?
 
  Thanks!
 
  __
  Do you Yahoo!?
  Yahoo! Shopping - Send Flowers for Valentine's Day
  http://shopping.yahoo.com
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Form based security

2003-02-13 Thread Barney Hamish
I think you've got the wrong idea about how the form-based security works.
It is counter-intuitive I agree but anyway...

Firstly the login form should not be in the secure area.
Define as the default page something in the secure area.
When the user tries to go to this default page tomcat will redirect them to
the login page.
After they've logged in successfully Tomcat wil redirect them to the page
they originally asked for (i.e. the default page).

You don't need a filter to do this. Tomcat does it automatically for you.

Hamish

 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 4:32 PM
 To: Tomcat Users List
 Subject: Re: Form based security
 
 
 Ok,  I figured most of the things out.
 
 My next question (along the same lines) is this:
 
 I have a link to the login.jsp which is now in a 
 security-constraint area.
 When they use the login.jsp successfully it complains about:
 Invalid direct reference to form login page
 
 How do I use the login page and define a page for a successful login?
 
 Thanks!
 
 --
 Sloan
 
 - Original Message -
 From: Sloan Seaman [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 10:01 AM
 Subject: Re: Form based security
 
 
  I have a filter set up so that if they don't go to the index.jsp or
  login.jsp it will redirect them to the login.jsp.
  (is that the best way?)
 
  So basically they either go to the index.jsp or login.jsp 
 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
  Subject: RE: Form based security
 
 
   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-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: Form based security
   
   
I'm attempting to do form based security and I keep getting a
404 error when
I click the submit button.
   
I'm guessing I'm missing some type of configuration in the
server.xml.
   
The form I am using is:
form method=POST action=j_security_check
  input type=text name=j_username/
  input type=password name=j_password/
  input type=submit value=Submit
/form
   
   
And I have the following in my web.xml
 login-config
 auth-methodFORM/auth-method
  form-login-config
   form-login-page/login.jsp/form-login-page
   form-error-page/login-error.jsp/form-error-page
  /form-login-config
 /login-config
   
Can anyone help me out here?
   
--
Sloan
   
   

 -
To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Form based security

2003-02-13 Thread Barney Hamish
No struts doesn't have a security model of its own but it does make it
considerably easier to build your own if that's the path you want to go down

 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 4:52 PM
 To: Tomcat Users List
 Subject: Re: Form based security
 
 
 Ok, I've got it now...
 
 Thanks for the information.
 
 Now my manager is saying he wasnted it all done in Struts and 
 that Struts
 has a security model that I should be using.  Is he wrong?  I 
 though struts
 was just tag libs and an MVC for hitting business logic.
 
 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 how the form-based 
 security works.
  It is counter-intuitive I agree but anyway...
 
  Firstly the login form should not be in the secure area.
  Define as the default page something in the secure area.
  When the user tries to go to this default page tomcat will 
 redirect them
 to
  the login page.
  After they've logged in successfully Tomcat wil redirect 
 them to the page
  they originally asked for (i.e. the default page).
 
  You don't need a filter to do this. Tomcat does it 
 automatically for you.
 
  Hamish
 
   -Original Message-
   From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 13, 2003 4:32 PM
   To: Tomcat Users List
   Subject: Re: Form based security
  
  
   Ok,  I figured most of the things out.
  
   My next question (along the same lines) is this:
  
   I have a link to the login.jsp which is now in a
   security-constraint area.
   When they use the login.jsp successfully it complains about:
   Invalid direct reference to form login page
  
   How do I use the login page and define a page for a 
 successful login?
  
   Thanks!
  
   --
   Sloan
  
   - Original Message -
   From: Sloan Seaman [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Thursday, February 13, 2003 10:01 AM
   Subject: Re: Form based security
  
  
I have a filter set up so that if they don't go to the 
 index.jsp or
login.jsp it will redirect them to the login.jsp.
(is that the best way?)
   
So basically they either go to the index.jsp or login.jsp
   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
Subject: RE: Form based security
   
   
 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-
  From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 13, 2003 3:48 PM
  To: [EMAIL PROTECTED]
  Subject: Form based security
 
 
  I'm attempting to do form based security and I keep 
 getting a
  404 error when
  I click the submit button.
 
  I'm guessing I'm missing some type of configuration in the
  server.xml.
 
  The form I am using is:
  form method=POST action=j_security_check
input type=text name=j_username/
input type=password name=j_password/
input type=submit value=Submit
  /form
 
 
  And I have the following in my web.xml
   login-config
   auth-methodFORM/auth-method
form-login-config
 form-login-page/login.jsp/form-login-page
 form-error-page/login-error.jsp/form-error-page
/form-login-config
   /login-config
 
  Can anyone help me out here?
 
  --
  Sloan
 
 
 
   
 -
  To unsubscribe, e-mail:
   [EMAIL PROTECTED]
  For additional commands, e-mail:
   [EMAIL PROTECTED]
 


   
 -
 To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
 For additional commands, e-mail:
   [EMAIL PROTECTED]


   
   
   
   
 -
To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED

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: get User object from tomcat
 
 
 But how can we get the all user info from principal
 like user fullname?
 
 -Fang
 
 -Original Message-
 From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 8:24 PM
 To: Tomcat Users List
 Subject: Re: get User object from tomcat
 
 
 Humm...not clear. I guess you mean the principal. Looks at:
 
 HttpServletRequest.getUserPrincipal() that returns the current 
 authenticated user
 HttpServletRequest.isUserInRole(String role) to see if the current 
 authenticated user is included in the specified logical role.
 
 -- Jeanfrancois
 
 fangfang cai wrote:
 
 Hi,
 
 Does anyone know how to get the User object(MemoryUser object) which
 contains user's fullname, roles .?
 
 Thanks,
 
 Fang
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 to) in the server.xml file.
Hamish

 -Original Message-
 From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 10:26 AM
 To: '[EMAIL PROTECTED]'
 Subject: How to configure Tomcat to suppress adding port to URL??
 
 
 Hi Folks,
 
 is it possible to configure Tomcat 4.0 to suppress the port 
 into the url
 adress (URL rewriting etc)?
 If yes who and in which config file?
 
 I need this due to Tomcat should run into a specical security 
 zone and the
 firewall maps a specific port
 to my tomcat server. Therefore I would like to force Tomat 
 not returing the
 Port into the URL's.
 
 Bye  lot's of Thx
 Toby
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 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) [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 06, 2003 4:01 PM
 To: tomcat liste
 Subject: export exel stylesheets from jsp
 
 
 
 Hi ,
 
 does anyone know if theres a package to make exel stylesheets ?
 
 I want to dump a database and make downloadable on the fly for the
 user..
 
 
 
 
 
 Ihr Support-Team
 
  POWER-NETZ®
 Full-Service-Provider 
 
 Online-Support:
 Support: 0190 - 15 11 15 (EUR 0,62/Min)
 http://Support.Power-Netz.de (kostenlos)
 http://Support.Power-Netz.com (kostenlos)
 
 Vertrieb Tel:  01805 - 57 35 57 (EUR 0,12/Min.)
 Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.)
 
 Power-Netz
 Am Plan 1
 37581 Bad Gandersheim
 
 http://www.Power-Netz.de
 mailto:[EMAIL PROTECTED]
 
 
 +=+
 --I N F O   C E N T E R--
 + Senden Sie eine leere e-mail an:
 + Providerwechsel: mailto:[EMAIL PROTECTED]
 + Daten/Preise Webspace: mailto:[EMAIL PROTECTED]
 + Reseller-Programm: mailto:[EMAIL PROTECTED]
 + Dedizierte Server: mailto:[EMAIL PROTECTED]
 + Adult/Erotikserver: mailto:[EMAIL PROTECTED]
 + Domainpreise: mailto:[EMAIL PROTECTED]
 + Domain-Nameserver: mailto:[EMAIL PROTECTED]
 + SSL-Zertifikate: mailto:[EMAIL PROTECTED]
 + Geschaeftsbedingungen: mailto:[EMAIL PROTECTED]
 + =+
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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

 -Original Message-
 From: Switch [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 11:10 AM
 To: Tomcat User Group
 Subject: Could this be a Tag Libs implementation bug?
 
 
 Hello everybody.
 
 I've just signed up this list, then I must present myselft first.
 My name is Paco. I'm a J2EE developer for a local SW copany 
 at Balearic
 Islands (Spain - Europe).
 
 I apologize me for my english. I write as well as I can :-)
 I've read the etiquette and I've read the FAQ and I've read the mail
 archieve, without having found an explanation to my problem.
 
 Here it goes:
 
 I've developed a small iterate TagLib. This Tag Lib works 
 fine with WL and
 Oracle iAS and I'm currently migrating to jboss + tomcat.
 
 At the end of this e-mail I'will paste some code to explain 
 properly why I
 think there's a bug.
 I've created a very simple JSP that tests my IterateTag and I get a
 NullPointerException because of the EVAL_BODY_INCLUDE returned by
 doStartTag.
 
 I've been looking .java generated file from .jsp and I 
 can see this
 piece of code:
 
  int _jspx_eval_bit_iterate_0 = _jspx_th_bit_iterate_0.doStartTag();
  if (_jspx_eval_bit_iterate_0 != 
 javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
String str = null;
if (_jspx_eval_bit_iterate_0 !=
 javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
  javax.servlet.jsp.tagext.BodyContent _bc = 
 pageContext.pushBody();
  _bc.clear();
  out = _bc;
  _jspx_th_bit_iterate_0.setBodyContent(_bc);
  _jspx_th_bit_iterate_0.doInitBody();
  str = (String) pageContext.findAttribute(str);
}
do {
  ...
  if (evalDoAfterBody !=
 javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_bit_iterate_0 !=
 javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
  out = pageContext.popBody();
  }
 
 I can't undestand why this generated .java file executes if !=
 EVAL_BODY_INCLUDE and I think it should be if == 
 EVAL_BODY_INCLUDE (May
 be I'm wrong).
 
 I've read the following at J2EE 1.3 javadoc about BodyTagSupport class
 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/j
 sp/tagext/Tag.
 html#EVAL_BODY_INCLUDE):
 
 EVAL_BODY_INCLUDE
 public static final int EVAL_BODY_INCLUDE
 
 Evaluate body into existing out stream. Valid return value 
 for doStartTag
 
 I can workarround this by returning EVAL_BODY_BUFFERED (so 
 this isn't a
 critical error)
 
 Could anybody explain why is _jspx_eval_bit_iterate_0 being 
 compared to be
 not EVAL_BODY_INCLUDE?
 
 Tell me if you need something else.
 
 Thanks in advance for your help.
 
 
 Some source code for ItareateTag.java
 ---
 public int doStartTag() throws JspTagException
   {
 if(iterator==null) return SKIP_BODY;
 if(iterator.hasNext())
 {
   
 pageContext.setAttribute(name,iterator.next(),PageContext.PAGE_SCOPE);
   Enumeration en =
 pageContext.getAttributeNamesInScope(PageContext.PAGE_SCOPE);
   while (en.hasMoreElements()) 
 System.out.println(Attributute:  +
 en.nextElement());
   return EVAL_BODY_INCLUDE;
 }
 else return SKIP_BODY;
   }
 
   public int doAfterBody() throws JspTagException
   {
 System.out.println(IterateTag.doAfterBody. name:  + name + 
 Iteratior:  + iterator + Type:  + type);
 if(iterator.hasNext())
 {
   
 pageContext.setAttribute(name,iterator.next(),PageContext.PAGE_SCOPE);
   return EVAL_BODY_AGAIN;
 }
 else
 {
   return SKIP_BODY;
 }
   }
 
   public int doEndTag() throws JspTagException
   {
 System.out.println(IterateTag.doEndTag. name:  + name + 
  Iteratior: 
 + iterator + Type:  + type);
 try
 {
   if(bodyContent != null)
 bodyContent.writeOut(bodyContent.getEnclosingWriter());
 }
 catch(java.io.IOException e)
 {
   throw new JspTagException(IO Error:  + e.getMessage());
 }
 System.out.println(Fin IterateTag.doEndTag. );
 return EVAL_PAGE;
   }
 ---
 
 Some source code for a JSP test file:
 ---
 %@ page contentType=text/html;charset=ISO-8859-15%
 %@ page import=java.util.* %
 %@ taglib uri=mytags prefix=bit %
 %
   Vector v = new Vector();
   v.addElement(First Element);
   v.addElement(Second Element);
   v.addElement(Third Element);
   v.addElement(Fourth Element);
 %
 html
   head/head
   body
 table
   bit:iterate name=str collection=%=v% type=String
 trtdThis items contains %=str.length()% 
 characters and its
 value is %=str%/td/tr
   /bit:iterate
 /table
 /body
 ---
 
 taglib.tld contents:
 ---
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP 
 Tag Library
 1.1//EN 

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

 -Original Message-
 From: Ralf Lorenz [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 1:13 PM
 To: [EMAIL PROTECTED]
 Subject: form based authentication problem
 
 
 guess that was to much of description last time! next try
 
 can anybody tell me how to do some action, say put an object 
 in the session
 or/and update a list in the servlet context directly after a 
 user was logged
 in successfully via form-based authentication (context) with 
 a jdbc-realm?
 
 ralf
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 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 help
 
 
 I am trying to configure a new realm for MySQL, and I am 
 finding debuggin problems at this point is next to impossible 
 and very frustrating. When I try to start Tomcat, the console 
 window pops up for a second, an exception message is thrown 
 and the window closes before I can read it. The log files do 
 not show any of this output, so I am stuck with changing 
 things one at a time to see if I can get Tomcat to fire up 
 and generate logs!
 
 Any advice on how to get output to a log file when I can't 
 start Tomcat???
 
 Thanks, Geoff
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 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!
 
 
 Hi Bill,
 
 Thanks a lot for the instruction. But where shall I put Ant? 
 When I run 5)
 step in your instruction, it always complain build.xml 
 doesn't existed!
 
 BR,
 
 Annie
 
 -Original Message-
 From: Bill Barker [mailto:[EMAIL PROTECTED]]
 Sent: 30. tammikuuta 2003 11:23
 To: [EMAIL PROTECTED]
 Subject: Re: Context problem, urgent!
 
 
 Since 13040 is still marked NEW, I'm afraid so.
 
 It's really not as scary as it sounds.  The steps are (assuming that
 jakarta-ant-1.5.x is already installed, and in your PATH):
 1) download and un-pack the Tomcat source distribution.
 2) download and un-pack the Connector source distribution
 3) cd to the directory where you unpacked the Tomcat source 
 (by default
 .../jakarta-tomcat-4.1.x-src), and copy the 
 'build.properties.sample' file
 to 'build.properties'
 4) edit the 'build.properties' file to set the 'jtc.home' 
 property to the
 location of the Connector source dowload.  Last time that I 
 did this, you
 also need to set the 'jasper.home=jasper' property.  If you 
 are behind a
 firewall, then you also have to set the 'proxy.host' and 
 'proxy.port' to
 your proxy server's values.  These (as well as the 'proxy.use') are
 commented out by default:  uncomment them if this applies.
 5) run the command 'ant download' to install the additional libraries.
 6) apply the patch to the source code.
 7) run the command 'ant dist' to create a new Tomcat distribution in
 .../jakarta-tomcat-4.1.x-src/dist.
 
 Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Thanks Bill. It is exactly my problem. It is a bug of 
 TC4.1.12. I noticed
  that there is fixing solution to the source code. Does it 
 mean that I have
  to download the source code and modify it and recompile it?
 
  -Original Message-
  From: Bill Barker [mailto:[EMAIL PROTECTED]]
  Sent: 30. tammikuuta 2003 9:18
  To: [EMAIL PROTECTED]
  Subject: Re: Context problem, urgent!
 
 
  Look at 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if
it
 looks like what you are seeing.

 Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  Hi,
 
  In Tomcat4, I can not get the right context of other webapp from my app.
 My
  app is set as the doc root. For example I have configuration  like
 
  Context path= docBase=MyApp debug=0 reloadable=true
  crossContext=true/
  Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true
  crossContext=true/
 
  in server.xml. But the difference from in Tomcat3.2 is, when I user the
  following statement in my servlet:
 
  ServletContext sc =
  this.getServletConfig().getServletContext().getContext(/OtherApp);
 
  sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request,
  response);
 
  Tomcat can not find the OtherApp context!
 
  Can anybody help? This is really urgent!
 
  Many thanks in advance!
 
  Annie
 
 
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Context problem, urgent!

2003-01-30 Thread Barney Hamish
It doesn't really matter if it downloads the zipped tar or the zip, they're
both pretty much the same and should work on either platform...

My guess is your firewall is getting in the way of ant's efforts to download
the beanutils. Check in the build script or the instructions where it
expects to find the bean utils package, download it yourself and put it
there.


 -Original Message-
 From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 12:26 PM
 To: 'Tomcat Users List'
 Subject: RE: Context problem, urgent!
 
 
 OK Now when I run ant in tomcat src dir it doesn't complain. 
 But it was
 failed with the following message:
 
  [echo] download
 http://jakarta.apache.org/builds/jakarta-commons/release/commo
 ns-beanutils/v
 1.4.1/commons-beanutils-1.4.1.tar.gz
 
 testexist:
  [echo] Testing  for
 /usr/local/commons-beanutils-1.4.1/commons-beanutils.jar
 
 downloadgz:
   [get] Getting:
 http://jakarta.apache.org/builds/jakarta-commons/release/commo
 ns-beanutils/v
 1.4.1/commons-beanutils-1.4.1.tar.gz
   [get] Error getting
 http://jakarta.apache.org/builds/jakarta-commons/release/commo
 ns-beanutils/v
 1.4.1/commons-beanutils-1.4.1.tar.gz to \usr\local\file.tar.gz
 
 BUILD FAILED
 file:C:/jakarta-tomcat-4.1.18-src/build.xml:564:
 java.io.FileNotFoundException:
 http://jakarta.apache.org/builds/jakarta-commons/release/commo
 ns-beanutils/v
 1.4.1/commons-beanutils-1.4.1.tar.gz
 
 Total time: 2 seconds
 
 
 I am using 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 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!
  
  
  Hi Bill,
  
  Thanks a lot for the instruction. But where shall I put Ant? 
  When I run 5)
  step in your instruction, it always complain build.xml 
  doesn't existed!
  
  BR,
  
  Annie
  
  -Original Message-
  From: Bill Barker [mailto:[EMAIL PROTECTED]]
  Sent: 30. tammikuuta 2003 11:23
  To: [EMAIL PROTECTED]
  Subject: Re: Context problem, urgent!
  
  
  Since 13040 is still marked NEW, I'm afraid so.
  
  It's really not as scary as it sounds.  The steps are (assuming that
  jakarta-ant-1.5.x is already installed, and in your PATH):
  1) download and un-pack the Tomcat source distribution.
  2) download and un-pack the Connector source distribution
  3) cd to the directory where you unpacked the Tomcat source 
  (by default
  .../jakarta-tomcat-4.1.x-src), and copy the 
  'build.properties.sample' file
  to 'build.properties'
  4) edit the 'build.properties' file to set the 'jtc.home' 
  property to the
  location of the Connector source dowload.  Last time that I 
  did this, you
  also need to set the 'jasper.home=jasper' property.  If you 
  are behind a
  firewall, then you also have to set the 'proxy.host' and 
  'proxy.port' to
  your proxy server's values.  These (as well as the 'proxy.use') are
  commented out by default:  uncomment them if this applies.
  5) run the command 'ant download' to install the additional 
 libraries.
  6) apply the patch to the source code.
  7) run the command 'ant dist' to create a new Tomcat distribution in
  .../jakarta-tomcat-4.1.x-src/dist.
  
  Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message
  
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   Thanks Bill. It is exactly my problem. It is a bug of 
  TC4.1.12. I noticed
   that there is fixing solution to the source code. Does it 
  mean that I have
   to download the source code and modify it and recompile it?
  
   -Original Message-
   From: Bill Barker [mailto:[EMAIL PROTECTED]]
   Sent: 30. tammikuuta 2003 9:18
   To: [EMAIL PROTECTED]
   Subject: Re: Context problem, urgent!
  
  
   Look at 
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13040 to see if
 it
  looks like what you are seeing.
 
  Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message
  
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  Hi,
 
  In Tomcat4, I can not get the right context of other webapp from my app.
 My
  app is set as the doc root. For example I have configuration  like
 
  Context path= docBase=MyApp debug=0 reloadable=true
  crossContext=true/
  Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true
  crossContext=true/
 
  in server.xml. But the difference from in Tomcat3.2 is, when I user the
  following statement in my servlet:
 
  ServletContext sc =
  this.getServletConfig().getServletContext().getContext(/OtherApp);
 
  sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request,
  response);
 
  Tomcat can not f

RE: Context problem, urgent!

2003-01-30 Thread Barney Hamish
: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]]
 Sent: Donnerstag, 30. Jänner 2003 14:18
 To: 'Tomcat Users List'
 Subject: RE: Context problem, urgent!
 
 
 Hi,
 
 I am still struggling with ant. After puting the library 
 files manually, I
 got this error message:
 
 BUILD FAILED
 file:C:/jakarta-tomcat-4.1.18-src/webapps/tomcat-docs/build.xml:82:
 javax.xml.tr
 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 problem, urgent!
 
 
 It doesn't really matter if it downloads the zipped tar or 
 the zip, they're
 both pretty much the same and should work on either platform...
 
 My guess is your firewall is getting in the way of ant's 
 efforts to download
 the beanutils. Check in the build script or the instructions where it
 expects to find the bean utils package, download it yourself 
 and put it
 there.
 
 
  -Original Message-
  From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 30, 2003 12:26 PM
  To: 'Tomcat Users List'
  Subject: RE: Context problem, urgent!
  
  
  OK Now when I run ant in tomcat src dir it doesn't complain. 
  But it was
  failed with the following message:
  
   [echo] download
  http://jakarta.apache.org/builds/jakarta-commons/release/commo
  ns-beanutils/v
  1.4.1/commons-beanutils-1.4.1.tar.gz
  
  testexist:
   [echo] Testing  for
  /usr/local/commons-beanutils-1.4.1/commons-beanutils.jar
  
  downloadgz:
[get] Getting:
  http://jakarta.apache.org/builds/jakarta-commons/release/commo
  ns-beanutils/v
  1.4.1/commons-beanutils-1.4.1.tar.gz
[get] Error getting
  http://jakarta.apache.org/builds/jakarta-commons/release/commo
  ns-beanutils/v
  1.4.1/commons-beanutils-1.4.1.tar.gz to \usr\local\file.tar.gz
  
  BUILD FAILED
  file:C:/jakarta-tomcat-4.1.18-src/build.xml:564:
  java.io.FileNotFoundException:
  http://jakarta.apache.org/builds/jakarta-commons/release/commo
  ns-beanutils/v
  1.4.1/commons-beanutils-1.4.1.tar.gz
  
  Total time: 2 seconds
  
  
  I am using 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 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!
   
   
   Hi Bill,
   
   Thanks a lot for the instruction. But where shall I put Ant? 
   When I run 5)
   step in your instruction, it always complain build.xml 
   doesn't existed!
   
   BR,
   
   Annie
   
   -Original Message-
   From: Bill Barker [mailto:[EMAIL PROTECTED]]
   Sent: 30. tammikuuta 2003 11:23
   To: [EMAIL PROTECTED]
   Subject: Re: Context problem, urgent!
   
   
   Since 13040 is still marked NEW, I'm afraid so.
   
   It's really not as scary as it sounds.  The steps are 
 (assuming that
   jakarta-ant-1.5.x is already installed, and in your PATH):
   1) download and un-pack the Tomcat source distribution.
   2) download and un-pack the Connector source distribution
   3) cd to the directory where you unpacked the Tomcat source 
   (by default
   .../jakarta-tomcat-4.1.x-src), and copy the 
   'build.properties.sample' file
   to 'build.properties'
   4) edit the 'build.properties' file to set the 'jtc.home' 
   property to the
   location of the Connector source dowload.  Last time that I 
   did this, you
   also need to set the 'jasper.home=jasper' property.  If you 
   are behind a
   firewall, then you also have to set the 'proxy.host' and 
   'proxy.port' to
   your proxy server's values.  These (as well as the 
 'proxy.use') are
   commented out by default:  uncomment them if this applies.
   5) run the command 'ant download' to install the additional 
  libraries.
   6) apply the patch to the source code.
   7) run the command 'ant dist' to create a new Tomcat 
 distribution in
   .../jakarta-tomcat-4.1.x-src/dist.
   
   Peng Annie / FINLAND [EMAIL PROTECTED] wrote in message
   
  
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thanks Bill. It is exactly my problem. It is a bug of 
   TC4.1.12. I noticed
that there is fixing solution to the source code. Does it 
   mean that I have
to download the source code and modify it and recompile it?
   
-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]]
Sent: 30. tammikuuta 2003 9:18
To: [EMAIL PROTECTED]
Subject: Re: Context problem, urgent!
   
   
Look at

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, 2002 2:29 PM
To: Tomcat Users List
Subject: Tomcat/Weblogic!!...


Hi,
 Is it possible to integrate tomcat (web server) and weblogic (App
server)..if so how it is possible?..


Any help would be appreciated


thanks,
Ramkumar

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 the username from tomcat-user.xml file as a
 variable?  I want to use the username that a user logs in as into my
 servlet.
 
 Thanks
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 4:14 PM
 To: Tomcat Users List
 Subject: MySQL Hell
 
 
 
 Hello all,
 
 i have been breaking my brain trying to get connection pooling, using
 Tomcat 4.1.12's build in dbcp, with mySQL 3.23.
 
 I have followed the instructions on the how this should be 
 done, and I am
 getting an exception when I try to get a connection .. (like 
 many other
 people it seems)..  If anyone has solved this problem.. or 
 has a link to a
 forum where this problem is answered please let me know..
 
 I have downloaded mysql-connector-java-2.0.14.zip
 
 I unzipped it and copied :
 *  the contents of WEB-INF/lib to my lib folder
 * contents of com to my WEB-INF/classes folder
 * contents of org to my WEB-INF/classes folder (this *does* contain
 org.gjt.mm.mysql.Driver)
 
 This does not work.  My jsp test code follows, and the 
 Exception occurs on
 getConnection()...
 
 %@ page language=java import=java.sql.*, javax.sql.*, 
 javax.naming.*
 errorPage=error.jsp %
 
 %
   Context initContext = new InitialContext();
   Context envContext  = 
 (Context)initContext.lookup(java:/comp/env);
   DataSource ds = (DataSource)envContext.lookup(jdbc/mehdi);
   Connection conn = ds.getConnection();
 
 %
 
 Exception is
 
 java.sql.SQLException: Cannot load JDBC driver class
 'org.gjt.mm.mysql.Driver'
 
 SERVER.XML
 
 Context path=/mysql docBase=mysql debug=0 
 reloadable=true
 
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_DBTest_log. suffix=.txt
  timestamp=true/
 
   Resource name=jdbc/mehdi
auth=Container
type=javax.sql.DataSource/
 
   ResourceParams name=jdbc/mehdi
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
 !-- Maximum number of dB connections in pool. Make sure you
  configure your mysqld max_connections large enough to handle
  all of your db connections. Set to 0 for no limit.
  --
 parameter
   namemaxActive/name
   value100/value
 /parameter
 
 !-- Maximum number of idle dB connections to retain in pool.
  Set to 0 for no limit.
  --
 parameter
   namemaxIdle/name
   value30/value
 /parameter
 
 !-- Maximum time to wait for a dB connection to become available
  in ms, in this example 10 seconds. An Exception is thrown if
  this timeout is exceeded.  Set to -1 to wait indefinitely.
  --
 parameter
   namemaxWait/name
   value1/value
 /parameter
 
 !-- MySQL dB username and password for dB connections  --
 parameter
  nameusername/name
  valuemehdi/value
 /parameter
 parameter
  namepassword/name
  valuemypass/value
 /parameter
 
 !-- Class name for mm.mysql JDBC driver --
 parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
 /parameter
 
 !-- The JDBC connection url for connecting to your MySQL dB.
  The autoReconnect=true argument to the url makes 
 sure that the
  mm.mysql JDBC Driver will automatically reconnect if 
 mysqld closed
 the
  connection.  mysqld by default closes idle 
 connections after 8
 hours.
  --
 parameter
   nameurl/name
   
 valuejdbc:mysql://localhost:3306/mehdi?autoReconnect=true/value
 /parameter
   /ResourceParams
 
 /Context
 
 
 running out of time, and hair.
 
 Thanks,
 
 Med
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 Users List'
 Subject: Doing something on the server when user session expires
 
 
 Is it possible to activate a method call when a user session expires,
 independently of the client browsing activity ? A mean, for example: a
 user logs in, then stops his activity for 30 minutes. 
 Supposed that user
 sessione expires after 20 minutes, when he tries to access a 
 page tomcat
 automatically detect that his session expired and shows the user the
 login page, but that happens only when he request a (protected) page,
 that is at time 30; I want to do something exactly when user session
 expires, that is at time 20. Is it possible ?? Thanks a lot
 
 Renato
 
 
 Renato Romano
 Sistemi e Telematica S.p.A.
 Calata Grazie - Vial Al Molo Giano
 16127 - GENOVA
 
 e-mail: [EMAIL PROTECTED]
 Tel.:   010 2712603
 _
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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
 Subject: JSP fine but no Java.
 
 
 Hello,
 
 I am having a really annoying problem that I hope somebody 
 can help me with.
 
 My tomcat will run .jsp files fine and process them perfectly 
 but will not
 even consider using a .class file.
 
 My app has jsps with javabeans linked in through tags in the 
 .jsp files.  In
 fact any java code in the .jsp files seems to work fine until 
 a java class
 needs to be called.
 
 Please help as I haven't got much hair left from pulling it all out ;)
 
 Regards
 
 Andoni.
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
What is the actual error message being displayed?
Can you send an example of the the jsp:useBean tag you're using and then
the use of that bean?
It's hard to diagnose the problem without more specific information.
Hamish

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: 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: Thursday, January 16, 2003 1:20 PM
 Subject: RE: JSP fine but no Java.
 
 
  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
   Subject: JSP fine but no Java.
  
  
   Hello,
  
   I am having a really annoying problem that I hope somebody
   can help me with.
  
   My tomcat will run .jsp files fine and process them perfectly
   but will not
   even consider using a .class file.
  
   My app has jsps with javabeans linked in through tags in the
   .jsp files.  In
   fact any java code in the .jsp files seems to work fine until
   a java class
   needs to be called.
  
   Please help as I haven't got much hair left from pulling 
 it all out ;)
  
   Regards
  
   Andoni.
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JSP fine but no Java.

2003-01-16 Thread Barney Hamish
Try recompiling your classes, deleting the work directory and restarting
tomcat.

 -Original Message-
 From: Andoni [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 3:05 PM
 To: Tomcat Users List
 Subject: Re: JSP fine but no Java.
 
 
 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
 
 --
 --
 
 
 type Exception report
 
 message Internal Server Error
 
 description The server encountered an internal error 
 (Internal Server Error)
 that prevented it from fulfilling this request.
 
 exception
 
 javax.servlet.ServletException: class
 com.company_name.javaBeans.MerchandiseBean :
 java.lang.NullPointerException
   at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImp
 l.java, Compiled Code)
   at 
 org.apache.jsp.validate$jsp._jspService(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]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, January 16, 2003 1:47 PM
 Subject: RE: JSP fine but no Java.
 
 
  What is the actual error message being displayed?
  Can you send an example of the the jsp:useBean tag you're 
 using and then
  the use of that bean?
  It's hard to diagnose the problem without more specific information.
  Hamish
 
   -Original Message-
   From: Andoni [mailto:[EMAIL PROTECTED]]
   Sent: 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: Thursday, January 16, 2003 1:20 PM
   Subject: RE: JSP fine but no Java.
  
  
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
 Subject: JSP fine but no Java.


 Hello,

 I am having a really annoying problem that I hope somebody
 can help me with.

 My tomcat will run .jsp files fine and process them perfectly
 but will not
 even consider using a .class file.

 My app has jsps with javabeans linked in through tags in the
 .jsp files.  In
 fact any java code in the .jsp files seems to work fine until
 a java class
 needs to be called.

 Please help as I haven't got much hair left from pulling
   it all out ;)

 Regards

 Andoni.


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
--
To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
   
   
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[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
 To: 'Tomcat Users List'
 Subject: Sharing an object between servlets
 
 
 
 Dear All,
 
 We are building a map tool - to draw maps and show some data 
 on them. Now, I
 have this situation. I have a servlet that gets coordinates from the
 database and draws the map on its OutputStream (the content 
 type is set to
 png image). There is another servlet (content type is 
 text/html) that embeds
 the URL of the first servlet. This servlet also gets 
 coordinates from the
 database, and populates them over the image so I can do some 
 image map or
 mouseOver() tricks using javascript. I was wondering if there 
 was a way to
 make just one call to the database and share the coordinates 
 between the
 servlets. Right now, I will try any thing!
 
 Thank you,
 Vijay
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 more information about the settings in
your web.xml

 -Original Message-
 From: Aaron Chan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 9:56 AM
 To: 'Tomcat Users List'
 Subject: How to configure tomcat to forward files to diff servlet
 
 
 
 Hi, I want to make tomcat to forward request for certain file type etc
 .xml to a servlet. May i know how to do it?
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 about it.

 

 

 

 

 

Thanx and Rgds,

Gautam

 

The only way to discover the limits of the possible is to 

look beyond into the possible.

 

*

Gautam Mohan Srivastava

System Engineer

Wipro Technologies

No. 26,Hosur Road

Bommanahalli

Bangalore-560068

India

Tel :- 91-080-5732293 Extn-2154

Fax :- 91-080-5732696

www.wipro.com http://www.wipro.com 

 

*

 




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
connections (like poolman does) if it's to be used with SQL Server. I
haven't got around to submitting a patch to the DBCP Commons team to fix
this.

Hamish

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 23, 2002 4:43 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat Connection pooling
 
 
 
 I guess some advice is better than none.
 
 Have you checked out the Jakarta Commons DBCP pooling solution like I
 recommended?  Here's a link to how it was done with MySQL:
 
 http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
 
 Have you checked out third-party SQL Server drivers?  The drivers I am
 familiar with have fully-functional trial periods and they 
 not only support
 pooling but also JDBC 3.0.
 
 Have you checked out open source pooling solutions besides DBCP, like
 poolman?
 
 John
 
 
  -Original Message-
  From: Amitabh Dubey [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 23, 2002 10:39 AM
  To: Tomcat Users List
  Subject: RE: Tomcat Connection pooling
  
  
  John, you are the only one who replied, and hence i took your 
  advice and
  changed my subject and am reposting it. hopefully someone 
  with an actual
  example of pooling with sql server can help me.
  
  Amitabh
  
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 23, 2002 9:37 AM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat Connection pooling
  
  
  
  Check your message list threads.  I already replied to this 
 post this
  morning!  Perhaps others have as well.
  
  John
  
  
   -Original Message-
   From: Amitabh Dubey [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 23, 2002 10:33 AM
   To: Tomcat
   Subject: Tomcat Connection pooling
  
  
   Hello Guys,
  I have been working on this problem for 3 days now and
   have not been able
   to make Tomcat create a connection pool for me. This is my setup
  
   Database - SQL Server 2000
   Driver   - JDBC Driver by microsoft
   Tomcat   - 4.1.2 (Packaged as part of JWSDK from SUN)
  
   I was able to successfully create and use connections using a
   DataSource.
   However, I want to use connection pooling and have no idea of
   how I can do
   so. If there is anyone who has been successful in creating a
   DataSource
   using a Connection pool with SQL Server, please could you
   either send me a
   snippet of your server.xml or tell me how i can go about
   achieving pooling.
  
   Also, do i need Tyrex if i want to use connection pooling. I
   have downloaded
   it from their website anyways and placed in my
   tomcat\common\lib directory.
   How do i go about using this pool manager if this i what i
   have to use with
   tomcat to achieve pooling.
  
   Please HELP!!
  
   Thank you
   Amitabh Dubey
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat Connection pooling

2002-09-23 Thread Barney Hamish

No I'm afraid I don't. I don't use datasources at the moment just the old
vanilla way of creating database connections.

 -Original Message-
 From: Amitabh Dubey [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 23, 2002 4:51 PM
 To: Tomcat Users List
 Subject: RE: Tomcat Connection 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
 
 
 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
 connections (like poolman does) if it's to be used with SQL Server. I
 haven't got around to submitting a patch to the DBCP Commons 
 team to fix
 this.
 
 Hamish
 
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 23, 2002 4:43 PM
  To: 'Tomcat Users List'
  Subject: RE: Tomcat Connection pooling
 
 
 
  I guess some advice is better than none.
 
  Have you checked out the Jakarta Commons DBCP pooling 
 solution like I
  recommended?  Here's a link to how it was done with MySQL:
 
  http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
 
  Have you checked out third-party SQL Server drivers?  The 
 drivers I am
  familiar with have fully-functional trial periods and they
  not only support
  pooling but also JDBC 3.0.
 
  Have you checked out open source pooling solutions besides 
 DBCP, like
  poolman?
 
  John
 
 
   -Original Message-
   From: Amitabh Dubey [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 23, 2002 10:39 AM
   To: Tomcat Users List
   Subject: RE: Tomcat Connection pooling
  
  
   John, you are the only one who replied, and hence i took your
   advice and
   changed my subject and am reposting it. hopefully someone
   with an actual
   example of pooling with sql server can help me.
  
   Amitabh
  
   -Original Message-
   From: Turner, John [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 23, 2002 9:37 AM
   To: 'Tomcat Users List'
   Subject: RE: Tomcat Connection pooling
  
  
  
   Check your message list threads.  I already replied to this
  post this
   morning!  Perhaps others have as well.
  
   John
  
  
-Original Message-
From: Amitabh Dubey [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 10:33 AM
To: Tomcat
Subject: Tomcat Connection pooling
   
   
Hello Guys,
   I have been working on this problem for 3 days now and
have not been able
to make Tomcat create a connection pool for me. This is my setup
   
Database - SQL Server 2000
Driver   - JDBC Driver by microsoft
Tomcat   - 4.1.2 (Packaged as part of JWSDK from SUN)
   
I was able to successfully create and use connections using a
DataSource.
However, I want to use connection pooling and have no idea of
how I can do
so. If there is anyone who has been successful in creating a
DataSource
using a Connection pool with SQL Server, please could you
either send me a
snippet of your server.xml or tell me how i can go about
achieving pooling.
   
Also, do i need Tyrex if i want to use connection pooling. I
have downloaded
it from their website anyways and placed in my
tomcat\common\lib directory.
How do i go about using this pool manager if this i what i
have to use with
tomcat to achieve pooling.
   
Please HELP!!
   
Thank you
Amitabh Dubey
   
   
   
--
To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 Party drivers available.

 -Original Message-
 From: Prashanth Pushpagiri [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 23, 2002 6:17 PM
 To: Tomcat Users List
 Subject: tomcat 4.0.2/ SQL server 2000/ IIS 5.0 crashes
 
 
 Tomcat 4.0.2 crahed and generated the following error
 messagecan anyone possibly think of a reason why
 it crashed? any workarounds or debugging help?
 
 Thanks
 Prashanth
 
 An unexpected exception has been detected in native
 code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION
 occurred at PC=0x77F821E1
 Function=RtlEnterCriticalSection+0xB
 Library=C:\WINNT\System32\ntdll.dll
 
 Current Java thread:
   at sun.jdbc.odbc.JdbcOdbc.colAttributes(Native
 Method)
   at
 sun.jdbc.odbc.JdbcOdbc.SQLColAttributes(JdbcOdbc.java:2036)
   at
 sun.jdbc.odbc.JdbcOdbcResultSet.getColAttribute(JdbcOdbcResult
Set.java:5241)
   at
 sun.jdbc.odbc.JdbcOdbcResultSet.getColumnType(JdbcOdbcResultSe
 t.java:5870)
   at
 sun.jdbc.odbc.JdbcOdbcResultSet.getMaxCharLen(JdbcOdbcResultSe
 t.java:5269)
   at
 sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:267)
   at dlnet.TaxonBean.retrieve_List(TaxonBean.java:78)
   - locked 02BD0230 (a dlnet.TaxonBean)
   at
 dlnet.TaxonBean.getLevel2_id_list(TaxonBean.java:45)
   - locked 02BD0230 (a dlnet.TaxonBean)
   at
 dlnet.Search.BrowseBean.checkBrowseRequest(BrowseBean.java:125)
   at
 org.apache.jsp.Browse_0005fDLNET$jsp._jspService(Browse_0005fD
 LNET$jsp.java:212)
   at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.java:202)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:382)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:193)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
rapperValve.java:243)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
ontextValve.java:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
esValve.java:246)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2343)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
Valve.java:180)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
spatcherValve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
Valve.java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
 e.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:564)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
gineValve.java:174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
ipeline.java:566)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
   at
 org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
   at java.lang.Thread.run(Thread.java:536)
 
 
 

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 File Viewer
 
 
 Hi
 
 Is there a way to see additions made to the log files in real 
 time? Like is
 there someway you could get notified when something has been 
 written to a
 log file? Or can you some how hook into catilina, so that when ever
 ServletContext.log(log something) is fired you get the 
 string as well?
 
 I'm just after real time logging. That's all.
 
 Nicholas Orr
 
 
 **
 The information contained in this e-mail is confidential and is
 intended only for the use of the addressee(s).
 If you receive this e-mail in error, any use, distribution or
 copying of this e-mail is not permitted. You are requested to
 forward unwanted e-mail and address any problems to the
 MIM Holdings Limited Support Centre.
 
 For general enquires: ++61 7 3833 8000
 Support Centre e-mail:[EMAIL PROTECTED]
 Support Centre phone: Australia 1800500646
   International ++61 7 38338042
 **
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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: Dominik Jednoralski [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 2:29 PM
 To: Tomcat User Help
 Subject: Reloading .jsp-Pages 
 
 
 Hey,
 
 I'm using tomcat 4.0.1 / windows. I've a problem with reloading my
 jsp-pages.
 tomcat simply ignores the changes I've made to them. I added 
 the following
 contexts
 in the server.xml-file:
 
 Context path=/WEB-INF/classes/myWebApp docBase=myWebApp debug=0
 reloadable=true /
 and
 DefaultContext reloadable=true /
 
 Anyway, they're still in the servers cache and aren't 
 reloaded after an
 update.
 
 Does anyone of you smart guys know how to tell tomcat to 
 always recomlpile
 the jsp-files and
 -includes in the MyWebApp-Directory? Thank you...
 
 
 Dominik Jednoralski
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: RE: Reloading .jsp-Pages

2002-09-18 Thread Barney Hamish

If you've already touched the files and made sure that the date stamp is
more recent than the most recent access to that jsp page it could be a
browser cache or proxy problem. Have you got caching turned off in your
browser?

Hamish

 -Original Message-
 From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 2:47 PM
 To: Tomcat User Help
 Subject: RE: RE: Reloading .jsp-Pages 
 
 
 thats the point: it doesn't recompile even if the files where updated.
 isn't there a switch to force tomcat to always recompile all jsps?
 
 -Ursprüngliche Nachricht-
 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 them. An
 alternative is to delete everything in the work directory and 
 restart tomcat
 forcing it to recompile all jsps.
 Hamsih
 
  -Original Message-
  From: Dominik Jednoralski [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 17, 2002 2:29 PM
  To: Tomcat User Help
  Subject: Reloading .jsp-Pages
 
 
  Hey,
 
  I'm using tomcat 4.0.1 / windows. I've a problem with reloading my
  jsp-pages.
  tomcat simply ignores the changes I've made to them. I added
  the following
  contexts
  in the server.xml-file:
 
  Context path=/WEB-INF/classes/myWebApp 
 docBase=myWebApp debug=0
  reloadable=true /
  and
  DefaultContext reloadable=true /
 
  Anyway, they're still in the servers cache and aren't
  reloaded after an
  update.
 
  Does anyone of you smart guys know how to tell tomcat to
  always recomlpile
  the jsp-files and
  -includes in the MyWebApp-Directory? Thank you...
 
 
  Dominik Jednoralski
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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: '[EMAIL PROTECTED]'
 Subject: JDBCReal / MySql /server.xml problem
 
 
 Hi,
 
 I am trying to set up a JDBCRealm using MySql. I have pretty 
 much followed
 the documentation to the letter.
 
 However my Realm...  tag declaration, generates the 
 following parse error
 
 The reference to entity password must end with the ; delimter.
 
 This points to the password=mypassword bit of the 
 connectionURL attribute.
 Removing the password bit of the string gets rid of the error, but of
 couurse it then won't connect to the database. As there is no DTD for
 server.xml I am somewhat stumped. I don't think I have done anything
 different from the documentation
 
 BTW I am using Tomcat version 4.1.9.
 
 Any help appreciated.
 
 Howard
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 
 guys, so sorry
 in advance.
 
 I am trying to run tomcat 3.2 as a service on Win 2000.  
 Tomcat is installed
 properly as is my JDK (1.3.1_04) by the way.  Both are installed into
 directories with NO spaces.  I have configured my 
 wrapper.properties file as
 described in the docs.  After running jk_nt_service.exe -i ... the
 registry shows all the proper information.
 
 Yet, still I get the following error.
 
 net start tomcat
 The tomcat service is starting.
 The tomcat service could not be started.
 
 The service did not report an error.
 
 More help is available by typing NET HELPMSG 3534.
 
 The given command does not give any useful information
 
 If someone has a suggestion other than take the spaces out of the
 directories please let me know  there are NO spaces in any 
 directory I
 reference in my wrapper.properties file, or the registry 
 entry created for
 the service.
 
 Thanks,
 
 Joe
 
 
 ==
 Joe Meagher
 Rational Software
 Desk: 972-473-5226 2400 Dallas Pkwy, Suite 460
 Cell: 214-281-9318 
 Plano, TX 75093
 
 Fax: 972-473-5210  [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: global.jsa

2002-09-04 Thread Barney Hamish

load-on-startup in your WEB-INF/web.xml is the element. Have a look in the
servlet specifications for a fuller description.
Hamish

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 03, 2002 8:43 PM
 To: Tomcat Users List
 Subject: RE: global.jsa
 
 
 Interesting.  I was aware of the application scope option 
 which is cool ...
 but not exactly what I was looking for.  Running a servlet 
 onStartup is an
 intriquing suggestion though.  I didn't know you could do 
 thatI think
 that's what I'm looking for!  :)
 
 Cool...I'm going to read more 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'
 Subject: RE: global.jsa
 
 
 Why don't you just declare the object you want to use as 
 having application
 scope? That way the first time you use it it will be initialized?
 
 Alternatively you can specify servlets that should be run on 
 start-up in the
 web.xml if you want some kind of java daemon running.
 
 Hamish
 
  -Original Message-
  From: neal [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 03, 2002 10:56 AM
  To: Tomcat Users List
  Subject: RE: global.jsa
 
 
  Thanks.
 
  No global.jsa, eeh?
 
  The web.xml is a good way to go if you have flat variables
  that you want
  placed into the application object ... 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: global.jsa
 
 
  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: Tomcat Users List
   Subject: global.jsa
  
  
   Is there such a thing as a global.jsa file in Tomcat?
  
   I first saw this concept (an idea taken from ASP's
   global.asa) implemented
   in JRUN.
  
   If there is a global.jsa, does anyone know of any docs on
   this?  If not, is
   there an alternative? The reason I would want to use this is
   to instantiate,
   populate, and cache a few objects upon startup of the
  application.  If
   Tomcat does not provide a global.jsa...does anyone know how
   otherwise to
   achieve the goal?
  
   Thanks.
   Neal
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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: Tomcat Users List
 Subject: global.jsa
 
 
 Is there such a thing as a global.jsa file in Tomcat?
 
 I first saw this concept (an idea taken from ASP's 
 global.asa) implemented
 in JRUN.
 
 If there is a global.jsa, does anyone know of any docs on 
 this?  If not, is
 there an alternative? The reason I would want to use this is 
 to instantiate,
 populate, and cache a few objects upon startup of the application.  If
 Tomcat does not provide a global.jsa...does anyone know how 
 otherwise to
 achieve the goal?
 
 Thanks.
 Neal
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: global.jsa

2002-09-03 Thread Barney Hamish

Why don't you just declare the object you want to use as having application
scope? That way the first time you use it it will be initialized?

Alternatively you can specify servlets that should be run on start-up in the
web.xml if you want some kind of java daemon running.

Hamish

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 03, 2002 10:56 AM
 To: Tomcat Users List
 Subject: RE: global.jsa
 
 
 Thanks.
 
 No global.jsa, eeh?
 
 The web.xml is a good way to go if you have flat variables 
 that you want
 placed into the application object ... 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: global.jsa
 
 
 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: Tomcat Users List
  Subject: global.jsa
 
 
  Is there such a thing as a global.jsa file in Tomcat?
 
  I first saw this concept (an idea taken from ASP's
  global.asa) implemented
  in JRUN.
 
  If there is a global.jsa, does anyone know of any docs on
  this?  If not, is
  there an alternative? The reason I would want to use this is
  to instantiate,
  populate, and cache a few objects upon startup of the 
 application.  If
  Tomcat does not provide a global.jsa...does anyone know how
  otherwise to
  achieve the goal?
 
  Thanks.
  Neal
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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  XML
 
 
 
 hi ,
 
 I have created a couple of xml files and I need to know in which 
 directory of Tomcat 4.0 I need to place these xml files , from where 
 Java Beans can use them.
 
 Mubaraka Arif
 Database software developer
 St Mary's University , San Antonio, TX
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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: RE: Easy to read HOWTO's or anything similar?
 
 
  -Original Message-
  From: Johan Sunnerstig [mailto:[EMAIL PROTECTED]] 
  What I'm looking for is more of a Let's configure our Tomcat 
  from scratch
  in n steps, while most docs seem to be aimed at JSP developers.
 
 I think I understand you now - but I've never seen a document 
 like the one I
 think you want.  
 
 Probably only the source code will have your answers.
 
 Maybe one of the list gurus will have something for you.
 
 Sorry,
 
 Edmund
 Please note that our company name is now Fidelity National 
 Information Solutions (FNIS). For future correspondence, 
 please note our new email domain of @fnis.com. Thank You.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 decided to put in some debugging code when I establish the connection.

PoolingDriver poolingDriver = (PoolingDriver)
DriverManager.getDriver(defDbURL);
ObjectPool objectPool = poolingDriver.getPool(/sql_databases);
System.out.println(Active -  + objectPool.getNumActive() +  Idle -  +
objectPool.getNumIdle());

but that gives me a negative number of active connections(eg. see below)
Active - -5 Idle - 0

The number of active connections seems to decrease every time I request a
new one.

Find below my configuration file for DBCP. Has anyone encountered similar
problems or know what I'm doing wrong?

Thanks,
Hamish

object class=org.apache.commons.dbcp.PoolableConnectionFactory
xmlns=http://apache.org/xml/xmlns/jakarta/commons/jocl;
object
class=org.apache.commons.dbcp.DriverManagerConnectionFactory
!--DB Connection String--
string
value=jdbc:inetdae7://XXX:1433?database=sql_databases/

!--DB Connection Properties--
object class=java.util.Properties null=true/
/object

object class=org.apache.commons.pool.impl.GenericObjectPool
!--Factory object--
object
class=org.apache.commons.pool.PoolableObjectFactory null=true/

!--Max Active Connections--
int value=20/

!--When Exhausted Action--
byte value=1/!--Blocks when the pool is exhausted--

!--Max Wait-- 
long value=2000/

!--Max Idle--
int value=-15/

!--Test On Borrow--
boolean value=true/

!--Test on Return--
boolean value=true/

!--time Between Eviction Runs (Millis)--
long value=1/

!--Number of test per eviction run--
int value=5/

!--Minimum evictable idle time (Millis)--
long value=5000/

!--Test when idle--
boolean value=true/
/object

object
class=org.apache.commons.pool.impl.GenericKeyedObjectPoolFactory
!--Factory object--
object
class=org.apache.commons.pool.KeyedPoolableObjectFactory null=true/

!--Max Active Connections--
int value=5/

!--When Exhausted Action--
byte value=1/

!--Max Wait-- 
long value=2000/

!--Max Idle--
int value=5/

!--Test On Borrow--
boolean value=true/

!--Test on Return--
boolean value=true/

!--time Between Eviction Runs (Millis)--
long value=1/

!--Number of test per eviction run--
int value=5/

!--Minimum evictable idle time (Millis)--
long value=5000/

!--Test when idle--
boolean value=true/
/object

!--Validation query--
string value=SELECT getDate()/

!--Default read-only--
boolean value=false/

!--Default AutoCommit--
boolean value=true/
/object

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 servlet)
index.html

and adds it to the url-prefix string which can be defined in the web.xml
/opencms/opencms/COLANgamma/

so it ends up redirecting to 
/opencms/opencms/opencms/COLANgamma/ + index.html

Hamish


 -Original Message-
 From: Alexander Schmidt [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 25, 2002 3:05 PM
 To: Tomcat Users List
 Subject: Redirects by TOMCAT in server.xml?
 
 
 Hi!
 I will explain my problem better!
 I have an application opencms. With this application you can 
 create and
 manage HTML-Sites.
 The program uses Tomcat 4.0! To let me show the sites, i have 
 to type in the
 browser
 the URL 
 http://localhost:8080/opencms/opencms/COLANgamma/index.html; , but
 it is too long for me.
 So i want to redirect it. I only want to type in the URL
 http://localhost:8080/COLANgamma/index.html;. I want to do 
 the redirection
 with TOMCAT 4.0 in that way, that i configure the server.xml.
 But I don´t find any solution. I know that there is a possibility with
 Apache, but we don´t use it.
 
 Thanks
   A.Schmidt
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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: Thursday, August 22, 2002 11:05 AM
To: Tomcat Users List
Subject: Redirect!


Hello !
I want to redirect an URL, but I don´t know how! Has anyone an idea? I use
Tomcat4.0.1.

Thanks
 A. Schmidt


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 bill from office 1 and bill from office 2:
Username: Bill
Password: Foo
Office: 1
then we submit
j_username: 1Bill
j_password: Foo

and for Bill from office 2:
Username: Bill
Password: Foo
Office: 2
then we submit
j_username: 2Bill
j_password: Foo

Hamish

-Original Message-
From: Alexander Wallace [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 12:26 PM
To: [EMAIL PROTECTED]
Subject: Realms advise.


Not being experienced with realms I want to ask for your advece, will
this work?

I need to validate not only username and password, but one extra field
(an integer, OfficeID). This is becouse my webapp can service users from
different offices, and each office has it's own set of users and data.
In other words, The app needs to make sure that there is a username X
with password Y for Office Z.


Will realms work here?

I guess before continuing with my questions I'll wait to find out. Since
they may be particular to the use of realms or other options.

Thanks in advance!






--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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: Tomcat-Liste (E-Mail)
Subject: jsp:forward to TOP-Frame


Hello!

I want to forward the request to a page but it should be shown in my
top-frame.

e.g href=logindialogController.jsp?formcommand=logout target = _top

How can i solve this with jsp:forward

or any other solution?



Thanks
Harry Knoerrer

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: forward to TOP-Frame

2002-08-14 Thread Barney Hamish

You can't do this server side with out using javascript then.

The only way you're going to be able to do what you want without using
javascript is to get rid of the frames and put the whole site in one window.

-Original Message-
From: Harry Knörrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 11:49 AM
To: 'Tomcat Users List'
Subject: AW: forward to TOP-Frame


And javascript isn't allowed

 -Ursprüngliche Nachricht-
 Von: Harry Knörrer [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 14. August 2002 11:45
 An: 'Tomcat Users List'
 Betreff: AW: forward to TOP-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: forward to TOP-Frame
 
 
  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: Tomcat-Liste (E-Mail)
  Subject: jsp:forward to TOP-Frame
 
 
  Hello!
 
  I want to forward the request to a page but it should be shown in my
  top-frame.
 
  e.g href=logindialogController.jsp?formcommand=logout
  target = _top
 
  How can i solve this with jsp:forward
 
  or any other solution?
 
 
 
  Thanks
  Harry Knoerrer
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Login problem with reverse proxy

2002-08-13 Thread Barney Hamish

A couple of days ago I wrote to the list with the below problem (reverse
proxy having problems with Tomcat's redirect to the login screen). 

After spending two days trying to work out how best to modify Tomcat to
solve this problem I discovered that apache mod_proxy has a directive that
solves 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 Hamish 
Sent: Friday, August 09, 2002 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: Login problem with reverse proxy


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
request the log-in page. Is anyone aware of a way I can configure tomcat and
or the reverse proxy to make this set-up work?


More info:

-Internet--
|
Reverse Proxy
|
Private Net
|
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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
request the log-in page. Is anyone aware of a way I can configure tomcat and
or the reverse proxy to make this set-up work?


More info:

-Internet--
|
Reverse Proxy
|
Private Net
|
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 is forwarded to the login form on first visiting your website.
Hamish

-Original Message-
From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Problems getting login to work


Hello,

I'm trying to get users to log in to my app by using login-config in my
web.xml.  Most of my site is protected using security constraints.  For
some reason, now whenever I try to log in as a registered user, I get
the following error:

The request sent by the client was syntactically incorrect (Invalid
direct reference to form login page)

The login page is included using jsp:include on my index jsp and is a
simple login form using j_security-check etc...

Any thoughts as to why this might be happening.  I am running tomcat 4.1
on Linux using JDK1.4 - although I need this to work on Windows as well.
(I get the same problem when trying to run this on Windows)

Paul Hunnisett



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Login problem with reverse proxy

2002-08-09 Thread Barney Hamish

Thanks Jens. I'm afraid that doesn't help with my specific problem. This is
something to do with the forwarding of requests to the login page that
Tomcat does internally. I'm not sure how I can avoid that in the way I
design my application (if I want to use the built-in authentication method
without modifying the way Tomcat handles realms).
Do you know how I can deal with this specific problem?
Thanks,
Hamish



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:58 PM
To: Tomcat Users List
Subject: Re: Login problem with reverse proxy



Sorry for the empty mail, i struggled with my Lotus client (who the heck
creates a dialog box that defaults to Send when closing a modified mail
without sending it ?)...

I have a similar configuration here (slightly complicated due to the use of
struts). You must follow some rules in your design, to be able to do this:
- do not use browser redirects, but internal redirects. Or create
dynamically JavaScript redirects on your pages (not very nice, i know).
- use only relative URLs. Otherwise, especially if your application does
not map to your proxys root directory but some subfolder, nothing will
work.
- if you use struts, be aware of some tags, that create absolut URL pathes
(the form tag for example). I extended and overrided some of these tags in
order to create relative pathes (the struts community has decided, to not
treat this issue).

Hence, the most existing J2EE applications, that are not designed and
tested for a similar environment, most likely won't work without
modifications.

Regards,

Jens Stutte



 

JensStutte@qu

idinfo.itTo: Tomcat Users List

 [EMAIL PROTECTED]

09/08/2002   cc:

11.46Subject: Re: Login problem with
reverse proxy   
Please

respond to

Tomcat Users

List

 

 






Barney Hamish

Hamish.Barney@ect-teTo:
'[EMAIL PROTECTED]'
lecoms.de
[EMAIL PROTECTED]
 cc:

09/08/2002 11.32 Subject: Login problem
with reverse proxy
Please respond to

Tomcat Users List











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
request the log-in page. Is anyone aware of a way I can configure tomcat
and
or the reverse proxy to make this set-up work?


More info:

-Internet--
   |
Reverse Proxy
   |
Private Net
   |
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the
client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 content type from JSP?

Zsolt

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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

-Original Message-
From: Andreas Schlegel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: Request forwarding to a specific target frame?


Hi,

does anyone know how to forward a request to a specific frame?

I use:
dispatcher = getServletContext().getRequestDispatcher( 
/servlet/MyServlet );
dispatcher.forward( request, response );

Is there any way to define a target frame (TARGET='myFrame') in such a 
request forwarding?

Greetings,
Andreas


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 production version... 
Hamish

-Original Message-
From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:10 AM
To: [EMAIL PROTECTED]
Subject: Tag Iterate and jsp:include


Subject: Tag Iterate and jsp:include
From: Guido [EMAIL PROTECTED]
 ===
Hi all, i'm having the following error message with a jsp under Tomcat 4.0.1
:  Illegal to flush within a custom tag.
The code involved is :

logic:iterate name=myBean id=my_id property=my_property
type=
jsp:include page=%=my_id.getJspName()% /
/logic:iterate


This error happens only in production environment, with all others
installations ( 4 ) of tomcat it works fine.

I'm very very sure the settings of the 5 environments are the same: Win2K +
MicrosoftIIS  + Tomcat 4.0.1.
Has someone any idea about this ?
Thank in advance,
Guido Anselmi



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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]
Subject: Tag Iterate and jsp:include


Subject: Tag Iterate and jsp:include
From: Guido [EMAIL PROTECTED]
 ===
Hi all, i'm having the following error message with a jsp under Tomcat 4.0.1
:  Illegal to flush within a custom tag.
The code involved is :

logic:iterate name=myBean id=my_id property=my_property
type=
jsp:include page=%=my_id.getJspName()% /
/logic:iterate


This error happens only in production environment, with all others
installations ( 4 ) of tomcat it works fine.

I'm very very sure the settings of the 5 environments are the same: Win2K +
MicrosoftIIS  + Tomcat 4.0.1.
Has someone any idea about this ?
Thank in advance,
Guido Anselmi



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[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 INDIA. Just minutes back i
downloaded jakarta-tomcat-4.0-20020530.zip from
http://jakarta.apache.org site.

 I tried my first servlet file in the name of
admin.java . I created the file and stored in the
directory of
c:\jakarta-tomcat-4.0\webapps\Root\WEB-INF . I
compiled using javadoc and i got the admin.class file
without any error, on my first attempt. To be frank i
was really feeeling great , since its my first time
downloading and running a program on an webserver.
Before that i set the classpath. I am using windows
2000 server. So i set the classpath in
MyComputer/Properties/SystemProperties/Advanced/Environmet
Variables/SystemVariables. Actually i set the
classpath as
c:\jakarta-tomcat-4.0\common\lib\servlet.jar;c:\jdk1.3\bin;

 Now tried to run the Tomcatwebserver from the
directory c:\jakarta-tomcat-4.0\bin\startup and
unfortunately i couldn't do that. Its showing the
following error. 

 The JAVA_HOME environment variable is not defined
 This environment Variable is needed to run this
program
 Using CATALINA_BASE:  ..
 Using CATALINA_HOME:  .. 
 Using CATALINA_TEMPDIR:  ..\temp
 Using JAVA_HOME:
 The System cannot find the file
-Djava.endorsed.dirs=.

So i tried to set the JAVA_HOME enviroment variable as
c:\jdk1.3\bin; Then i tried again, now also iam
getting the same error. What wrong? Please help me.. 

 Iam using 
JAVA VERSION 1.3.01
JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
(BUILD  1.3.01)
JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
MODE)

 Waiting for a +ive and immediate mail from U
Sir/Madam.

Love,
Siva



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 to pay encrypted with the private key of
site X as a digest.

On site Y you recieve both. You decrypt the encrypted amount with site X's
public key. If the clear text amount matches the encrypted amount then you
know the request originates from X and that the user hasn't tampered with
the request. If the amounts differ then you know the user has tampered with
the request and it should be rejected. 

Hamish

-Original Message-
From: Laura [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 10:47 AM
To: [EMAIL PROTECTED]
Subject: Security problem?


Hi all,

it might be that I have a security problem and you should tell me if I am 
right. 
Well, I have a server with an ecommerce application: an user can buy 
something a when he has to pay the servlet of the web application executes a

redirect to my servlet (in a different server) passing me the sum of money 
that the user has to pay.

Could the user change the sum of money? Is redirect secure?

What do you think?

If yes how I can solve the problem?

Thanks for your help 

Laura

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Security problem?

2002-06-07 Thread Barney Hamish

Public and private keys can both generally be used to encrypt and decrypt.*
With this algorithm it's just as hard to try and crack the key in either
direction. In fact site X encrypting the message with it's private key is
the only way you can be sure that the message originated from site X.

Hamish

* This is the case for RSA encryption for instance, one of the most widely
used public key encryption algorithms. RSA takes advantage of the fact that
it's very hard to find the prime factors of very large numbers. The prime
factorisation is the private key and the large number is the public 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:
 
  - the amount of money the user is to pay encrypted with the private key
of
  site X as a digest.
  
  On site Y you recieve both. You decrypt the encrypted amount with site
X's
  public key. If the clear text amount matches the encrypted amount then
you
  know the request originates from X and that the user hasn't tampered
with
  the request. If the amounts differ then you know the user has tampered
with
  the request and it should be rejected.
 
 Is this backwards?
 
 I thought public keys encrypt and private keys decrypt..
 
 so site X would need to use site Y's public key to encrypt the amount, and
 site Y would then decrypt it with its private key.  Am I wrong?

I don't know if I have to say this, but... I believe that with X.509
certificates there are two courses of action:

encrypt

A public entity uses the certificate (which is publicly available) to
encrypt an object to the owner of the certificate. Only the owner has the
private part of the certificate with the private key, which can decrypt the
object.

sign

The owner of the certificate ca use the private part of certificate/key to
digitally sign the object. All public entities, who have that certificate,
can verify the integrity and authenticity of the object.

So, what is suggested is that the shopping cart server creates the final
payment report and signs it with it's private key/certificate. The
financial transaction server would verify that *that* is an authentic
request from the shopping cart server.

I must say that this is a bit ellaborate. I think that Java Servlet/JSP
should serve as a Web portal towards the Enterprize application. This
would be a typical case where the application design would benefit from a
real JEE environment. IOW, there would be no redirection, the shopping
cart servlet would fire up an Enterprize Java Bean component on the
financial transaction server and that EJB would do the work, return the
result to the servlet. There is no browser leaving the server, one point
of entry.

 Also, why even send the cleartext version?

Why not use HTTPS? It is a must in payment web applications.

Nix.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Security problem?

2002-06-07 Thread Barney Hamish


The point of encrypting with the private key is exactly that it can be
decrypted by anyone _with_ the public key. If a message can be decrypted
with the public key then that means that only the someone who knows the
private key could have encrypted it. 

In our example, if you're sure that the only person that knows  site X's
private key is Site X itself then you can be sure that the message
originated from site X.

In response to M. Schwarz, with public key encryption schemes know the clear
text of really doesn't help very much at cracking the private key. Besides
which, the user (presumably) knows what the price of the thing they are buy
anyway right? So they know what the cleartext of the message is whether it's
sent with the message or not.

Although this does bring to my mind a real weakness in my suggestion. Once
the user knows the Cypher text for $1 they can just resend the price for
whatever they want as $1. A nonce or something similar is therefore required
in the cyphertext to prevent from this kind of attack.

Certificate Authorities for instance always sign the key's they issue with
their private key (or certificate). This signature can then be decrypted
with the certificate authority's public key confirming that the certificate
was in fact issued by that certificate authority as sent by the website. Do
you really think CA's would use such a technique if it allowed people to
crack they're private key?

That's one of the attractive properties of algorithms like RSA. Knowledge of
the algorithm and the public key don't help you find the private key because
finding the prime factors of a number is a hard problem and takes a _long_
time... Even knowing the cleartext of a couple of messages doesn't really
help.

Hamish


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 11:31 AM
To: Tomcat Users List
Subject: Re: Security problem?


  So, what is suggested is that the shopping cart server creates the
final
  payment report and signs it with it's private key/certificate. The
financial
  transaction server would verify that *that* is an authentic request
from the
  shopping cart server.
  
 Ok, it was signing.  This still doesn't mean that it's encrypted right?
 Just that there's a high-tech version of a checksum in a sense?  I guess
 maybe I don't understand signing.  I thought that signed 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 of operation have
been established as common. And yes, a signed object is not encrypted. What
would we encript it with? Our private key? the anyone can decrypt it with
our public key, so what's the point?

There is a third mode of operation, which is a combination of the two. Say
we both have digital certificates and we exchange public parts. Then I can
digitally sign a message from me to you, using my private key and encrypt it
all with your public key. That message is decryptabel only by you and using
my public key, you can verify that the mesage came from me. They used to
call it digital handshake. I believe it is a part of SSL/TLS handshake.

 Yeah -- the redirect thing sounds like a very bad idea.

Yup.

Nix.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 change anything or rewrite the hasRole() method.

-Original Message-
From: Geoff Peters [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 1:36 PM
To: Tomcat Users List
Subject: RE: Bypassing user role assignment???


So it isn't possible to set a default role for everyone at login with a
parameter in the web.xml file?

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 4, 2002 8:34 AM
To: Tomcat Users List
Subject: AW: Bypassing user role assignment???


The only way I see, is to create your own realm by
extending JDBC Realm and overriding the hasRole() 
method.

 -Ursprüngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 4. Juni 2002 13:19
 An: [EMAIL PROTECTED]
 Betreff: Bypassing user role assignment???
 
 
 Does anyone know if it is possible to bypass the requirement 
 to have user roles defined within a table in the JDBC Realm? 
 Reason being is that I have an app where all users need to be 
 standard, and I have scripts and other apps creating the 
 users, therefore bypassing the user role definition would 
 save me from having to edit these other scripts and processes 
 (which are not Java based..)

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 5:35 PM
To: Tomcat Users List
Subject: Re: problem with jsessionid



I just copied the Tomcat configuration files from dev to live and the
problem still exists.

Jonathan



|-+
| |   tek1 |
| |   [EMAIL PROTECTED] |
| ||
| |   27/05/2002 09:24 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
 
---
---|
  |
|
  |   To:   Tomcat Users List [EMAIL PROTECTED]
|
  |   cc:
|
  |   Subject:  Re: problem with jsessionid
|
 
---
---|




are the configuration files the same for 'dev' and 'live'?

it may be possible that url rewritting is turned on in 'live'...



At 10:08 02/05/28 -0500, you wrote:
Hello,

I have two systems:

'Dev' is running Windows 2000 and Tomcat 4.0.3.
'Live' is running Windows NT 4.0 and Tomcat 4.0.3.

Both copies of Tomcat have identical configurations and are running Java 2
SDK 1.4.0.

I have a login page to authenticate users.  On Dev the login works fine
and
the 'result' page loads as it should.  On Live, the login page also works,
but the URL of the 'result' page has ;jsessionid=. appended to the
end.
This is screwing up my recordset navigation on the result page.

My question is:  why would Live be appending jsessionid to the end of the
URL?

Thanks in advance,

Jonathan Morgan
Kenna Marketing
(204) 982-1210
http://www.thekennagroup.com



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]






--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[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 the pop-up window is still open you can retieve the fields
values by using javascript (i.e. parent.opening window.form name.field
name.value or something like that)

-Original Message-
From: Aline [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 3:31 PM
To: Tomcat Users List
Subject: Jsp window opener


Hello,

I have a jsp page with a form.
In this form there is a button which send parameters to a
servlet and this servlet forward the request to another jsp page ( all in
popup).
Is there a way to get, from the popup window, the opening window ? I have to
reaccess to a field in the form.

Thanks.

Aline
http://www.oeilpouroeil.fr
http://www.visiodrome.com


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 5:58 PM
To: Tomcat Users List
Subject: Re: help, JDBCRealm, Why Need to authenticate three times to
login


I'm hardly a guru, so you probably want to investigate further.  However, it
looks to me like your login page is protected by your security constraint.
I don't know if that's the problem.  I do know that my login page is outside
of my url pattern and I just have to log in one time.

Regards,

Eddie

- Original Message -
From: Hillel Bilman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 07, 2002 12:50 AM
Subject: help, JDBCRealm, Why Need to authenticate three times to login


 Dear Tomcat Users

 I've installed tomcat v4.03 with JDBCRealm
 When you login incorrectly you go to the error
 page however if you login correctly you need to
 login three times before you can get to the
 index.jsp.

 Thanks for any assistance


 my web.xml is:

 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN

 http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

 web-app

 session-config
 session-timeout2/session-timeout
 /session-config

   security-constraint
   web-resource-collection
  web-resource-name
 WebInterface
  /web-resource-name
  url-pattern/login/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
   /web-resource-collection
   auth-constraint
  role-namemanager/role-name
  role-namecustomer/role-name
   /auth-constraint
/security-constraint
form-login-config
login-config
   auth-method
  FORM
   /auth-method

   form-login-config
 form-login-page/login/login.jsp/form-login-page

 form-error-page/login/error.jsp/form-error-page
   /form-login-config
/login-config

 server.xml:

  Realm
 className=org.apache.catalina.realm.JDBCRealm
 debug=99

 driverName=org.postgresql.Driver


connectionURL=jdbc:postgresql://localhost/catalina?user=dbuser;password=dbp
as
 s
 userTable=users
 userNameCol=user_name userCredCol=user_pass
  userRoleTable=user_roles
 roleNameCol=role_name/

 DefaultContext reloadable=true/
   Context path=/interface
 docBase=bulkinterface debug=0
 reloadable=true crossContext=true
 Logger
 className=org.apache.catalina.logger.FileLogger

 prefix=localhost_interface. suffix=.txt
 timestamp=true/
  /Context

 I've Switched off default Memory Realm

 The login.jsp I've used is from the examples:

 html
 head
 titleLogin Page for Examples/title
 body bgcolor=white
 form method=POST action='%=
 response.encodeURL(j_security_check) %' 
   table border=0 cellspacing=5
 tr
   th align=rightUsername:/th
   td align=leftinput type=text
 name=j_username/td
 /tr
 tr
   th align=rightPassword:/th
   td align=leftinput type=password
 name=j_password/td
 /tr
 tr
   td align=rightinput type=submit
 value=Log In/td
   td align=leftinput type=reset/td
 /tr
   /table
 /form
 /body
 /html

 Best Regards

 Hillel Bilman
 Manager HZB Technologies
 mailto:[EMAIL PROTECTED]
 cell:083232
 tel:(011)4436164


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 List
Subject: Re: Tomcat, IIS and JavaService Problem


Does anybody knows any kind of bug in Tomcat or JavaService
that can be the reason of this problem?

Thanks

- Original Message - 
From: Daniel Tamborelli Alvarenga [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 16, 2002 12:53 PM
Subject: Tomcat, IIS and JavaService Problem


Hi,

I am using Tomcat 3.2.3 as service (JavaService) with IIS 5.0/Win2k.
Sometimes Tomcat just stop responding and we must restart it.

Anybody knows what may be causing this problem?

PS: JavaService is configured with HotSpot.

Thank you.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 console when starting up ?


thanks.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 help


Sometimes happens also to me.
My solution is to empty the folder /tomcat/work
so Tomcat must recompile it.
But i think some gurus here have a better solution.
Giorgio

- Original Message - 
From: ajith kondapalli [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 09, 2002 5:28 PM
Subject: someoneneed help


 hai,
 I have just started using tomcat to deploy some
 webapps...the problem:I create the webapps for the
 first time and deploy them,it saves the changes and
 runs properly..but later changes in the JSP i am
 makin are not reflected in the outputso if i run
 the program for the first time then it shows the
 changes but later after i make some changes and run it
 the second time,it doesnt reflect those changesi
 dont undertsand what the problem issomeone plz
 help...!!!
  thanks 
   ajith
 
 __
 Do You Yahoo!?
 Yahoo! Tax Center - online filing with TurboTax
 http://taxes.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 PROTECTED]]
Sent: Thursday, March 21, 2002 1:18 PM
To: Tomcat Users List
Subject: Re: Apache/Tomcat security issue -- URGENT


I didn't get any responses, so I'm reposting with some summary. I'm 
pretty sure some body might have a solution for this.

Summary:
Is it possible to protect a resource in a particular folder which is 
under web application context? By protection I mean, only my 
application has to use that resource and if any body else accesses it 
manually he must either get access denied or a dialog box with 
username and password.

Please see below for more details.

Thanks.
-Surya

- Original Message -
From: Surya Suravarapu [EMAIL PROTECTED]
Date: Wednesday, March 20, 2002 8:57 pm
Subject: Apache/Tomcat security issue -- URGENT

 I'm using Apache 1.3.22 and Tomcat 4.0.2 on Windows NT/2000.
 
 I've a context called WebApp whose docBase=E:\WebApp. So, when I 
 point my browser to http://localhost/WebApp/main it will take me 
 to the 
 login screen of the application.
 
 There is a folder called Reports in my E:\WebApp. Some part of 
 my 
 application is using Response.sendRedirect() and displaying the 
 requested file (from the Reports folder) to the browser. That's 
 fine. I 
 want to show the files from that folder only through the 
 application 
 and I have to configure my web server in such a way that it denies 
 requests if a User enters the file name manually like 
 http://localhost/WebApp/Reports/some-file.xls. Please help me if 
 you 
 have a solution for this.
 
 Thanks.
 -Surya
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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

-Original Message-
From: Albert Pastrana [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 6:25 PM
To: tomcat-list
Subject: Tomcat 4.0 and IterationTag


Hi,

I've a tomcat 4.0 (downloaded latest week) in a Win2k pro.

I've a little problem running it as service, but running stand-alone
everything it's right.

The first problem comes when creating an iteration tag. I've followed many
explanations and, of course, read all the javadocs, and I cannot understand
what I'm doing wrong.

My code is something like that:

public class RepeatTag
extends  TagSupport
{
   int num = 0;

   boolean endLoop()   { return num==10; }
   voidnextElement() { num++;  }

   public int doStartTag() throws JspException {
  if (!endLoop()) {
 nextElement();
 return EVAL_BODY_AGAIN;
 }
 return SKIP_BODY;
   }

   public int doAfterBody() throws JspException {
  if (!endLoop()) {
 nextElement();
 return EVAL_BODY_AGAIN;
  } else {
 return SKIP_BODY;
  }
  }

} //end class RepeatTag

And the problem is that my Tomcat is saying me that exception:
javax.servlet.ServletException: Since tag handler class
com.ludicus.general.taglib.RepeatTag does not implement BodyTag, it can't
return BodyTag.EVAL_BODY_TAG

I've read a lot of documentation about JSP1.2 and I think that's the right
solution, but I supose I'm doing something wrong, could anyone tell me
what's the problem?

thanks a lot

  albert


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 for org.apache.tomcat.request.JDBCRealm it
shouldn't be hard to get it do what you want.
Good luck
Hamish

-Original Message-
From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:57 AM
To: [EMAIL PROTECTED]
Subject: RealmJDBC question


Hello,

I would like to implement RealmJDBC to get userrole from my DB,
but I have to find the role (and so the associated table's row) from
foreign keys
depending on others parameters than user login row ...

is it clear, and anybody has links or docs about this ?

thanks

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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: Tomcat Users List
Subject: NEED HELP TO DEFINE ENTRY POINT FOR MY APPLICATION


Hi,

I want to define a entry point for my application. i.e. all requests to my
application be recieved by a JSP, which then redirects to the requested
resource.

How do I do that?

Thanks in advance.

Gurmeet



-Original Message-
From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 7:10 PM
To: [EMAIL PROTECTED]
Subject: Just a test


hello, just a test

1º message to the list

thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 application is using that socket and stop it or change
the port tomcat uses in the server.xml file.
Hamish

-Original Message-
From: Leon Vermaak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 6:24 PM
To: Tomcat Users List
Subject: Tomcat startup.bat does not work?


Hi,
I am running Tomcat on Windows 2000 Professional.
If anyone could please tell me why I am getting the following output =
when I startup.bat Tomcat I would appreciate it:

Catalina.start: LifecycleException:  Error creating server socket =
(java.net.Bind
Exception):  java.net.BindException: Address already in use: JVM_Bind
LifecycleException:  Error creating server socket =
(java.net.BindException):  jav
a.net.BindException: Address already in use: JVM_Bind
at =
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:491)
at =
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at =
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at =
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at =
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at =
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
at java.net.ServerSocket.bind(ServerSocket.java:308)
at java.net.ServerSocket.bind(ServerSocket.java:266)
at java.net.ServerSocket.init(ServerSocket.java:182)
at java.net.ServerSocket.init(ServerSocket.java:138)
at =
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:118)
at =
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:485)
at =
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at =
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at =
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at =
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at =
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at =
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:243)




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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: [EMAIL PROTECTED]
Subject: Avoiding 'servlet' as part of the URL


How can I achieve that a servlet Serv123.class
which is successfully running from
install_dir/webapps/ROOT/WEB-INF/classes/
and currently called
http://somehost/servlet/Serv123

is able to be called
http://somehost/myfolder/Serv123
and located in the directory
install_dir/webapps/myfolder/classes/

Thx
Thomas


-- 

___
Sign-up for your own FREE Personalized E-mail at Email.com
http://www.email.com/?sr=signup



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 28, 2002 4:49 PM
To: Tomcat Users List
Subject: configuring additional servlet path


Hi List,


I went through all (IMHO) tomcat documentation and haven't found a solution.

In Apache JServ I could make 2 servlet zones and map them as follows:

http://myhost/myproduct/servlet - /myproduct/run/servlet
http://myhost/myproduct/pubservlet  - /myproduct/run/pubservlet

I need this because I want /myproduct/servlet/ servlets to be protected by 
username and password, and /myproduct/pubservlet to be unprotected (public -

hence the name).

Now, in tomcat I've set up a Context /myproduct in server.xml

Context path=/myproduct docBase=/myproduct/run/web debug=2
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_myproduct_log. suffix=.txt
  timestamp=true/
/Context

and moved all the files and dirs from /myproduct/run/servlet to 
/myproduct/run/web/WEB-INF/classes and all the servlets such as 
http://myhost/myproduct/servlet/Snoop are working fine.

My question is how can I set up /myproduct/pubservlet mapping so that when 
client calls http://myhost/myproduct/pubservlet/mypackage.MyServlet, tomcat 
will call /myproduct/run/pubservlet/mypackage/MyServlet.class 

Any help appreciated

Thanks in advance

-- 
Uri Shohet
A.M.S. Advanced Maintenance Systems Ltd.
E-Mail: [EMAIL PROTECTED]
Tel.:   +972-2-5822477 Ext.884
Fax :   +972-2-5814448

Registered Linux User #166615 (http://counter.li.org)


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 (run) a servlet on a local
machine?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 exactly do you need to change from a servlet?
Hamish

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 9:24 AM
To: Tomcat Users List
Subject: Re: Sense of realm element in login-config



Hi,

I do understand that it is shown the browser, but that is about all. But my
problem is that from within the servlet container I cannot do anything with
it.
For example, I cannot retrieve it and pass it on to the authentication
module, for example JDBCRealm. Yes, you can but then you have to manipulate
the web.xml file yourself? Is this really the case?

Regards,

--  Dirk



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 27, 2002 11:40 AM
To: Tomcat Users List
Subject: Apache does not load images!!
Importance: High


hi guys,

My system setup is like this.

tomcat has been integrated with apache with mod_jk.  When I send a request
directly to tomcat(post 8080), all the images are loaded appropriately, but
when i am sending a requet to apache(port 80), few images are not being
loaded. What should be done to avoid such a problem?

hope to get a speedy response...

thanks in advance.

Regards,
Eswar

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 setup is like this.

tomcat has been integrated with apache with mod_jk.  When I send a request
directly to tomcat(post 8080), all the images are loaded appropriately, but
when i am sending a requet to apache(port 80), few images are not being
loaded. What should be done to avoid such a problem?

hope to get a speedy response...

thanks in advance.

Regards,
Eswar

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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:
/myApp/myServlet=$(default.worker)

-Original Message-
From: Bigelow, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 6:05 PM
To: 'Tomcat Users List'
Subject: RE: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2


Yes the redirector.dll is in place and functioning and has been.  My problem
is that when I try to access the servlet without the port 8080 I get a 404
page not found error.
Mark

-Original Message-
From: Frederic Calvo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 9:09 AM
To: Tomcat Users List
Subject: Re: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2


This file is for Tomcat 4.0.1.
Anyway, i've tried it with Tomcat 4.0.2 and it works well.
Just replace the isapi_redirect.dll by isapi_redirector.dll.
Good luck.

- Original Message -
From: Bigelow, Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 21, 2002 5:44 PM
Subject: Port 80 access for servlets from IIS 4.0 and Tomcat 4.0.2


 I can get to the servlets on port 8080.  How do I change it to use port
80,
 while still using IIS on port 80?
 The Redirector.dll is in place and functioning.  AJP13 is functioning, I
 think.  Please help!
 Mark

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 PROTECTED]'
Subject: How to access a remote file?


Hello,

How to access a remote file? I have a network drive F: for a D: driver on
another machine mass. When I try to read a file on in driver F, it denies.

Thanks,
Jack Li

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 home and at work, both with very different setups of
Windows2000, and Tomcat pulls the same BS in both cases. Tomcat starts fine
when either I double click on startup.bat, or use the Start Tomcat
shortcut in the Start Menu(which just points to startup.bat).  Do you want
to know my varible settings?
System variables:
JAVA_HOME=C:\j2sdk1.4.0
CATALINA_HOME=C:\Progra~1\Apache~2
CLASSPATH=C:\IBMCON~1\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\Pro
gram~1\SQLLIB\java\db2java.zip;C:\Progra~1\SQLLIB\java\runtime.zip;C:
\Progra~1\SQLLIB\java\sqlj.zip;C:\Progra~1\SQLLIB\bin

Be more specific what settings you want to know...
 -Kevin






Loïc Lefèvre [EMAIL PROTECTED] on 02/19/2002 09:01:45 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:
Subject:  RE: Tomcat as a service...


Hi Kevin,
Could you write your system configuration?
(especially your network configuration)

Cheers,
Loïc Lefèvre

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 19 février 2002 14:51
À : [EMAIL PROTECTED]
Objet : Tomcat as a service...



One other thing... I have tried now, every now and then over
the past 6 months to get Tomcat to run as an NT service.
I have NEVER been sucessful and I have tried 4 or 5 different
ways.  I kept thinking that there was some silly bug that was going
to be fixed in the next release.  Well, I just installed the Tomcat 4.0.2
exe file, and during the install, checked the option to install as NT
service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
set properly, and reboot, and ONCE AGAIN, no tomcat service.
The service is listed in the Admin Services console as being
automatically started, but it wont actually start.  When I try to start it
manually from the services panel, I get this message, Could not
start Tomcat on local computer.  The service did not return an error.
Could be windows internal error or internal error.  If there was no error
returned, then why WONT IT START   And if there was an error,
why not REPORT IT.  How about telling the user what is wrong so that
he/she can fix it.  Duh. Sorry to be so brash, but it has been this way
for a long time and noone seems to care about fixing it.
 -Kevin Schmidt
 Cincinnati, OH




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]







--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html
about how to make Tomcat work as a Windows Service on Windows NT.
Now I wonder: what do I have to do to make Tomcat work 
as a Windows Service on Windows 2000 Professional or Windows 2000 Server?

Jan Kinander
project manager
Softronic Konsult AB

[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 vs. RH 6.2


While I have never built Tomcat, I do use Ant to build all my Java projects.
I use Xerces Java 2 parser for an XML parser and it works just fine.
Download it form the Apache XML Project website and install it in a
convenient place on your system.  Then add the xerces.jar file (in your
Xerces bin directory) to your classpath.  This should make Ant happy.

Jim

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 18, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: Tomcat vs. RH 6.2




I'm trying to build Apache with Tomcat.

I can't use the Tomcat binaries because they require glibc-2.2, but
I'm on a Linux RH 6.2 system that I'm in no position to upgrade, and
RH 6.2 and glibc-2.2 apparently don't mix.  Therefore, I decided to
try building my own Tomcat binary, one that can hopefully work with
the version of glibc I have.  (Does this make any sense??)

The building instructions for Tomcat are outdated and skimpy, but
anyway I got to:

% ant -projecthelp

Buildfile: build.xml

BUILD FAILED

No JAXP compliant XML parser found. Please visit
http://xml.apache.org for a suitable parser

Total time: 0 seconds

This gives me too little information to go on.  If someone would be so
kind as to tell me exactly what XML parser I must download, and where
I must install it for ant to work, I'd be most grateful.

Thanks!

KJ



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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-
From: Peter M. Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:06 PM
To: Tomcat-User
Subject: Form-based login from html-page


I have tried to search the mailing-lists but unsuccesfull. What I'm looking
for is a way to login to restricted resources in my ROOT folder. I have a
tomcat-4.0.1 connected to apache 1.3.22 via mod_jk and both *.jsp files and
html files are supposed to be in the /-folder of the webserver. The
jsp-pages are restricted whereas the html-pages is for everyone. So the
basic question is how do I login from index.html via form-based login to a
specific page i.e. one.jsp?

Best regards, Peter M. Nielsen


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Form-based login from html-page

2002-01-15 Thread Barney Hamish

If you want people to go directly to login when they access your site you
can make one.jsp the default welcome file. Then make one.jsp restricted.

This means when people go to your website they will try to access one.jsp
but that page is restricted so they will be redirected instead to the
login.jsp. Once they've logged in they will be forwarded to one.jsp as they
originally requested.

login.jsp = one.jsp

But it's still not very clear what you actually want.

-Original Message-
From: Peter M. Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:19 PM
To: Tomcat Users List
Subject: RE: Form-based login from html-page



Ok, it might be a bit unclear what I'm asking for. I have a jdbc-realm
already, and my users login via a login.jsp site when they are trying to
access one.jsp. What I want is to access the one.jsp without having people
going from index.html  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
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-
From: Peter M. Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:06 PM
To: Tomcat-User
Subject: Form-based login from html-page


I have tried to search the mailing-lists but unsuccesfull. What I'm looking
for is a way to login to restricted resources in my ROOT folder. I have a
tomcat-4.0.1 connected to apache 1.3.22 via mod_jk and both *.jsp files and
html files are supposed to be in the /-folder of the webserver. The
jsp-pages are restricted whereas the html-pages is for everyone. So the
basic question is how do I login from index.html via form-based login to a
specific page i.e. one.jsp?

Best regards, Peter M. Nielsen


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Form-based login from html-page

2002-01-15 Thread Barney Hamish

Then put the login form on index.html. Make one.jsp the default welcome page
and make the login page index.html
When they first come to your site they will be redirected to index.html
After they've logged in they will be redirected one.jsp

It's really not hard! Have a look at the documentation and have a bit of a
think about the way it works.

-Original Message-
From: Peter M. Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:33 PM
To: Tomcat Users List
Subject: RE: Form-based login from html-page


First, I just want to make clear that all jsp-files 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]]
Sent: 15. januar 2002 12:25
To: 'Tomcat Users List'
Subject: RE: Form-based login from html-page


If you want people to go directly to login when they access your site you
can make one.jsp the default welcome file. Then make one.jsp restricted.

This means when people go to your website they will try to access one.jsp
but that page is restricted so they will be redirected instead to the
login.jsp. Once they've logged in they will be forwarded to one.jsp as they
originally requested.

login.jsp = one.jsp

But it's still not very clear what you actually want.

-Original Message-
From: Peter M. Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:19 PM
To: Tomcat Users List
Subject: RE: Form-based login from html-page



Ok, it might be a bit unclear what I'm asking for. I have a jdbc-realm
already, and my users login via a login.jsp site when they are trying to
access one.jsp. What I want is to access the one.jsp without having people
going from index.html  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
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-
From: Peter M. Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:06 PM
To: Tomcat-User
Subject: Form-based login from html-page


I have tried to search the mailing-lists but unsuccesfull. What I'm looking
for is a way to login to restricted resources in my ROOT folder. I have a
tomcat-4.0.1 connected to apache 1.3.22 via mod_jk and both *.jsp files and
html files are supposed to be in the /-folder of the webserver. The
jsp-pages are restricted whereas the html-pages is for everyone. So the
basic question is how do I login from index.html via form-based login to a
specific page i.e. one.jsp?

Best regards, Peter M. Nielsen


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: 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 10:57 AM
To: [EMAIL PROTECTED]
Subject: Problems with TOMCAT_HOME during installation


Hey,

I have followed the provided installation instructions but when I try to
run the startup script from the DOS prompt I get the following message:

c:\jakarta-tomcat-3.3\conf not found.
Unable to locate Tomcat's conf directory, check the value of TOMCAT_HOME

I executed the script while standing in the jakarta-tomcat-3.3\bin catalog.

I would really appreciate any help!

Cheers,

Tomas


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 PROTECTED]]
Sent: Wednesday, December 19, 2001 3:36 PM
To: Tomcat Users List
Subject: How to find a file from a class with Tomcat


I have a Servlet S.java which uses a class C.java (not a servlet itself,
could make it one if I had too).
C.java needs to read a config file. The problem is that this class thinks it
is in c:/ or wherever I started the tomcat server from. I can use
this.getClass().getResource(fileName); but that only works with
Properties.load(), not with a FileInputStream.
So at the moment I have all my paths hardcoded into the classes and of
course I don't want that.

My server.xml contains:
Context path=/examples
 docBase=d:/jdk1.3/jakarta-tomcat-3.2.3/webapps/examples
 crossContext=false
 debug=9
 reloadable=true 
/Context

And the local web.xml:
   servlet
  servlet-namehi/servlet-name
  servlet-classHelloWorldExample/servlet-class
   /servlet
servlet-mapping
  servlet-namehi/servlet-name
  url-pattern/hi/*/url-pattern
   /servlet-mapping


Any tipp would be appreciated.

Stephan Wiesner


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 Message-
From: Mike Kelley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 6:53 PM
To: [EMAIL PROTECTED]
Subject: Where to place JDBC drivers? How?


I found some JDBC drivers for accesing an IBM AS400 
But I can't get them to work within the browser environment. I placed an
entry in my system variables 
Name: CLASSPATH
Value: loacation of JDBC.jar file;location of JDBC license.jar
(in windows is CLASSPATH = Path???)

The Drivers came with a few applets; with the correct information these
applets will connect to my as400 db but with the same info my jsp pages
won't connect,
I keep getting errors that look like this

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: hit.as400.As400Driver

Root Cause:
java.lang.ClassNotFoundException: hit.as400.As400Driver


Where should these jar files be placed? Do they need to be within the webapp
tree? DO I need to reference their location in the server.xml file?? Should
they be placed within the  JDK tree??? 

Anyone?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Where to place JDBC drivers? How?

2001-11-28 Thread Barney Hamish

It needs to be in the Classpath variable so that the jar file can be found.
You can add it to the WEB-INF folder but then you will have to put a copy of
the driver in the WEB-INF folder of every application that should be able to
access the database.

As for the other files it depends whether you're running Tomcat as a service
under NT or not etc. There is a classpath variable that is passed to java in
each of these files. The files are simple to edit, just open them up and
have a look.


-Original Message-
From: Mike Kelley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 7:09 PM
To: 'Tomcat Users List'
Subject: RE: Where to place JDBC drivers? How?


I have a reference in the environment variables (should the name be
CLASSPATH? Or is it an addition to the Path variable??)

I'm also finding a few references to putting the jar JDBC files in the
WEB-INF folder 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?


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 Message-
From: Mike Kelley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 6:53 PM
To: [EMAIL PROTECTED]
Subject: Where to place JDBC drivers? How?


I found some JDBC drivers for accesing an IBM AS400 
But I can't get them to work within the browser environment. I placed an
entry in my system variables 
Name: CLASSPATH
Value: loacation of JDBC.jar file;location of JDBC license.jar (in windows
is CLASSPATH = Path???)

The Drivers came with a few applets; with the correct information these
applets will connect to my as400 db but with the same info my jsp pages
won't connect, I keep getting errors that look like this

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: hit.as400.As400Driver

Root Cause:
java.lang.ClassNotFoundException: hit.as400.As400Driver


Where should these jar files be placed? Do they need to be within the webapp
tree? DO I need to reference their location in the server.xml file?? Should
they be placed within the  JDK tree??? 

Anyone?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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, November 27, 2001 2:01 PM
To: Tomcat Users List; Tom Drake
Subject: Re: Create JSP file or a Servlet file for web browser.



Hi Tom,

thanks you. I will definitely check the book.

by the way, do you mean I should use FrontPage or
other tools to create html file with layout I want and
then modify the file with jsp tags? please bear me
such stupid question.

thanks  regards
teng

--- Tom Drake [EMAIL PROTECTED] wrote:
 Teng:
 
 It sounds like your application consists of
 'boilerplate'
 html (lots of static html with a few simple variable
 replacements for name, address, etc...).
 
 If this is this case, then JSP will suit you very
 nicely.
 
 No need to use println statements at all.
 
 You'll need to write a bean that provides getter
 methods to retrieve the value(s) you want to
 plug in to your html (e.g. getName(), getAddress()
 ).
 
 
 Then you can write a jsp file that looks
 something like this:
 
 %@ page language=java import=com.mydomain.* %
 jsp:useBean id=customer scope=request
 class=com.mydomain.Customer/
 jsp:setProperty name=customer property=*/
 html
 headtitleCustomer jsp:getProperty
 name=customer
 property=name//title/head
 body
 
 Customer name: jsp:getProperty name=customer
 property=name/br
 Address: jsp:getProperty name=customer
 property=address/br
 
 /body
 /html
 
 The above jsp file will populate all properties of
 the
 Customer from request parameters (that came from a
 POST or GET request via a user form).
 
 Note that 'jsp:getProperty name=customer
 property=address/' will be
 replaced with
 the value returned by the call to
 customer.getAddress() where customer
 is defined
 as:
 com.mydomain.Customer customer = new
 com.mydomain.Customer();
 
 There is alot more to JSP's than this. It's best to
 pickup a good book
 (I like Professional JSP from Wrox press) and delve
 into the details.
 
 I hope this helps.
 
 Good Luck
 
 Tom
 
 
 - Original Message -
 From: renyu teng [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]; Tom Drake
 [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 7:55 PM
 Subject: Re: Create JSP file or a Servlet file for
 web browser.
 
 
 |
 |
 | Hi tom,
 |
 | thanks for your response.
 |
 | Actually my question is very simple: if I use
 | FrontPage to create a html file, and I want to
 dump
 | this html file with a little bit change (e.g.
 name,
 | address,etc), then should I use println to do it?
 If
 | it is the only choice, then I have to accept it.
 |
 | All the books about jsp or servlet I have gone
 through
 | in the book store are always giving simple
 examples
 | using println, I can't image I could follow this
 | approach to create html file as I could no way
 control
 | the layout. There should a tool like FrontPage so
 I
 | could create whatever pages I want with images,
 text,
 | different fonts, colors etc., then I could dump
 this
 | html file into web browser with my own
 modification
 | through jsp or servlet. Starting Hello World with
 c,
 | you have a new C world, but with jsp,you can't go
 far
 | as you can't use println to control layout which
 is
 | crucial for web browser.
 |
 | regards
 | teng
 |
 | --- Tom Drake [EMAIL PROTECTED] wrote:
 |  Please provide some more details. Your
 description
 |  is really
 |  too vague to respond to.
 | 
 |  However, If you are attempting to generate a
 |  'complicated'
 |  html document, a JSP or set of JSP (with JSP or
 HTML
 |  includes) provides ample means for generating
 highly
 |  complicated HTML. You may want to consider using
 |  CSS as well. This may simplify your html
 somewhat.
 | 
 |  You're right about using 'out.println(...);'.
 This
 |  technique is
 |  extremely clumsy, and difficult to maintain.
 JSP's
 |  give you
 |  the ability to write plain-vanilla HTML, which
 you
 |  can intersperse
 |  with java code that can do the fancy stuff. When
 you
 |  add
 |  taglibs to the mix, then you can do some very
 |  powerful things
 |  with some fairly simple HTML / XML.
 | 
 |  Regards,
 | 
 |  Tom Drake
 | 
 |  - Original Message -
 |  From: renyu teng [EMAIL PROTECTED]
 |  To: Tomcat Users List
 |  [EMAIL PROTECTED]
 |  Sent: Monday, November 26, 2001 6:09 PM
 |  Subject: Create JSP file or a Servlet file for
 web
 |  browser.
 | 
 | 
 |  |
 |  | As a new guy to use tomcat, I have the
 following
 |  | question:
 |  |
 |  | if I want to dump the response to a web
 browser,
 |  then
 |  | I need to format this into html or xml.
 However,
 |  it is
 |  | really complicate html file, I should have
 tools
 |  to do
 |  | it, right? I feel it is too clumsy to write
 all
 |  the
 |  | html text through out.println. How the
 complicated
 |  web
 |  | pages are created in the 

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]]
Sent: Saturday, November 17, 2001 6:43 PM
To: Tomcat Users List
Subject: This would be cool in tomcat as well...



http://www.caucho.com/products/resin/ref/velocity.xtp

:)

geir

-- 
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
Whoever would overthrow the liberty of a nation must begin by subduing the
freeness of speech. - Benjamin Franklin



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: 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 redirected to
IIS correctly.

Hamish

-Original Message-
From: Samuel Rochas [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 1:58 PM
To: Tomcat Users List
Subject: Authentication with Tomcat 3.2 and IIS4


Hello, 

Using Jakarta on IIS makes the authentication through IIS not working.

I have to configure Jakarta in order to allow the access to some
directories only after an authentication. I don't want to change my
application for that, furthermore I want to use Jakarta-Features for it. 

I am also looking for information how to customize the configuration
files (*.xml) and I did not find much in some FAQs 'till now. Can
anybody tell me which configuration files are involved? Which changes
are needed in these files?

Is there an online source for my request?

Thanks
Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 PROTECTED]]
Sent: Friday, November 16, 2001 2:16 PM
To: Tomcat Users List
Subject: Re: Authentication with Tomcat 3.2 and IIS4


Hello Hamish, 

Thanks for your answer.
Do you mean, the authentification and user management with Jakarta runs
with the help of a database? Do I have other possibilities like using a
config file instead of a database?

Sincerly
Samuel
-- 
SWIPe Software Engineering  Project Management GmbH

Solutions with Individual Profile

Web: http://www.swipe.de

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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: [EMAIL PROTECTED]
Subject: Drivers


Hi,
How can i conect tomcat 3.2.1 to a SQL Server 7.
Sorry for this newbie question,but i need so guide
Thanks all

Regards,
Andy

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 and start tomcat again and it should recompile the JSP page
automatically for you.

-Original Message-
From: Claudia Sarmiento [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 2:43 AM
To: '[EMAIL PROTECTED]'
Subject: Update JSP 


Hello:
I'm using tomcat 3.2.1, and i want to change a JSP page, but i don't know
how i do that, i tried to compile in my app dir with the build.bat but i
received the error : NoClassDefFound Error /org/apache/tools/ant/main

Thanks in advance.


Claudia



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
or whatever.

As long as this class can be found somewhere in your class path tomcat
should be able to load it.
Hamish


-Original Message-
From: Maneesha Jain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 2:40 AM
To: [EMAIL PROTECTED]
Subject: tomcat 4.0: Plug in custom Realm


Hi,

I want to plug in a custom Realm class in server.xml in tomcat 4.0 ?

Is that possible ?

Can I need to implement the Realm interface and stick that in the
server.xml file?

Where should I put this class, so the tomcat can resolve it when parsing
server.xml ?

Is this procedure documented anywhere ?

Regards
Maneesha



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, 2001 3:04 PM
To: Tomcat-user Mailinglist
Subject: JDBC Drivers


I'm looking for a JDBC Driver for an Oracle Database. I have found some on
the java.sun.com. But I don't know wich one I need. It is for a simple
application.

Can anyone help?

Dennis


Make a difference, help support the relief efforts in the U.S.
http://clubs.lycos.com/live/events/september11.asp



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: Friday, October 19, 2001 10:30 AM
To: [EMAIL PROTECTED]
Subject: Logging from a servlet in Tomcat



I have a question: It would be extremely useful for a servlet to be
able to record debugging messages in some way.  I don't have a Java
debugger, but I could do a lot of debugging if I had a command that
looked like this:

log(We are in this part of the code now);

I have seen documentation for a command like that, and I have tried it
in my installation of Tomcat 4.0, but it doesn't send any output
anywhere, so it seems useless.  Is there a way to get it to work?

Thanks



  1   2   >