Re: Security

2002-04-22 Thread Aditya

Vladimir,

On Mon, Apr 22, 2002 at 03:11:09PM +0900, Joel Rees wrote:
 Vladimir Vanyukov asked
  I have seen this question here many times and have seen many answers but
  most of them never really ANSWERED the question. So I figured I'd ask
  one more time. Is there anyway to programmatically authenticate users?

are you asking if you can call a method in your servlet or JSP that would
force the user to login if they weren't already? If so, no, not directly.
Ideally, you could do something like:

  if (req.getRemoteUser() == null){
authenticate(); //this would pop-up the login form or box
  }

but instead you have to do it as part of an auth-constraint in the web.xml;
for example, what we've done is to put an auth-constraint on a url pattern of

  /secure/* 

and our authenticateUser() method redirects them to

  /secure/go?url=$the_url_they_just_came_from

which forces them to authenticate (using form-based authentication) and then
redirect them back to where they came from without having to declare every
single url pattern in the web.xml; kludgy, but somewhat programmatic. I wish
there was a better way and if someone can show me one in the servlet spec
(without using filters which suffer from the same type of web.xml-itis) I'd be
very, very happy.

  Example:
  If I have s simple username/password form somewhere on an unprotected
  page, how do I use that information (assuming the user filled it out and
  submitted it) to allow him to view protected pages?

you'd probably want to redirect them to a centralized login page rather than
implement a login form on multiple pages; that the regular servlet spec let's
you do pretty easily using the login-config stanza.

Hope that helps,
Adi

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




RE: Is Tomcat/MySQL suitable to deploy as a production platform under Windows 2000 Pro?

2002-04-22 Thread Lee Chin Khiong


I think Tomcat doesn't have a detail document regarding how to deploy or
rather the architecture of the system that's why there are so many questions
been ask.


-Original Message-
From: David Lu [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 12:49 PM
To: Tomcat Users List
Subject: Re: Is Tomcat/MySQL suitable to deploy as a production platform
under Windows 2000 Pro?



presumably your current configuration is not java based, so
the largest cost of moving to tomcat/mysql would be development.
unless your site is very simple, chances are the development
cost will overshadow any savings you may realize from software
licenses.


On 2002.04.21 03:52 Adrian Beech wrote:
 Hi folks,
 
 Is Tomcat/MySQL stable enough to deploy as a production platform under
 Windows 2000 Pro?  I'm looking for a suitable platform to publish data
 driven web
 pages in a local Intranet environment.  At present we are using PWS/MS
 Access  under Windows 95.  I'd like to move onto something which is
 slightly
 more
 robust solution that doesn't cost the earth... actually if it doesn't
 cost
 nothing then much the better!
 
 Adrian
 [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]



Tomcat and XSLT transformations

2002-04-22 Thread cyril vidal



Hy,

Does Tomcat 4.0.1 assume some xslt transformations by default?
 I've put the following .jar files (xalanservlet.jar,
xalan.jar,xercesImpl.jar, xml-apis.jar, xsltc.jar) in C:\tomcat\lib, as
written in thedoc of tomcat, so that these files may be shared by all the
applications.But it doesn't run.

Unfortunelately, I get the following exception:
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: Cannot allocate servlet instance for path
/examples/servlet/TransformServlet
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:415)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoClassDefFoundError: javax/xml/transform/Source
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:396)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at 

Re: ISAPI_REDIRECTOR.DLL problem: Error 500

2002-04-22 Thread Markus Colombo

Hi,

Here are some additional hints for running Tomcat 4.03 with IIS5 on W2k:

-I used jakarta-redirector.dll from:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/win32/
(Don't download it with Netscape)

-Make sure the registry key matches the name (was jakarta-redirect.dll
before)

-Make sure you allow Script/Execute access for the virtual directory jakarta

-When testing, make sure you enter a URL that is actually mapped
(my uriworkermap.properties contained /examples/* 
so I had to test with localhost/examples/jsp to see a result,
localhost/examples wouldn't work)

Hope that helps somebody

Best Regards

Markus


-Original Message-
From: george moudry [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Date: Sun, 21 Apr 2002 21:40:01 -0700
Subject: Re: ISAPI_REDIRECTOR.DLL problem: Error 500

 for anyone having problems with ISAPI_REDIRECTOR.DLL in Tomcat4:
 As I wrote before, IIS5 + isapi_redirect.dll + Tomcat 4.0.3 was
 failing. 
 Now I installed Tomcat3.3 from source alongside Tomcat4.0, pointed
 IIS 
 at the old version of isapi/tomcat, and everything is miraculously 
 working fine.
 /george
 
 george moudry wrote:
 
  Hello there.
  First - Do you know where is the current source code for isapi dll?
 I 
  only found old source in tomcat 3.3.
 
  Next, my problem:
  I am trying to use Tomcat 4.0.3 with IIS. Both individually
 function 
  fine.
  But when ask IIS to give me http://192.168.1.101/examples/;, I get
  error 500. (see below for log entry).
  Meanwhile http://192.168.2.101:8080/examples/; (tomcat's port)
 works 
  fine.
 
  Darn. An hour ago, I was doing much better, I was getting The 
  specified module cannot be found. Naively, I went into tomcat's 
  server.xml to turn logging high, and now everything is broken and I
  only get error 500s.
  Thanks for any ideas.
  george
  los angeles
 
  PS. any way to sniff these AJP packets?
 
  ===
  ### details:
  IIS is running on 80 (but some neighbors are continuously trying
 bad 
  things),
  and Tomcat is on 8080.
  My machine: WIndows 2000 SP2
  My JDK: Java2 SDK, SE version 1.4.0
 
  ### Content of
 C:\Tomcat40\logs\localhost_examples_log.2002-04-19.txt 
  (not much action here)
  ...
  2002-04-19 00:01:49 StandardWrapper[/examples:invoker]: Loading 
  container servlet invoker
  2002-04-19 00:01:49 invoker: init
  2002-04-19 00:01:49 jsp: init
 
   Content of C:\Tomcat40\logs\iis_redirect.log: (many attempts
 to 
  redirect here)
  ...
  [Fri Apr 19 00:04:08 2002]  [jk_ajp_common.c (1222)]: Into 
  jk_worker_t::init
  [Fri Apr 19 00:04:08 2002]  [jk_worker.c (187)]: wc_create_worker,
 done
  [Fri Apr 19 00:04:08 2002]  [jk_worker.c (238)]: build_worker_map, 
  removing old ajp13 worker
  [Fri Apr 19 00:04:08 2002]  [jk_worker.c (250)]: build_worker_map,
 done
  [Fri Apr 19 00:04:08 2002]  [jk_worker.c (111)]: wc_open, done 1
  [Fri Apr 19 00:04:08 2002]  [jk_isapi_plugin.c (657)]:
 HttpFilterProc 
  started
  [Fri Apr 19 00:04:08 2002]  [jk_isapi_plugin.c (705)]: In 
  HttpFilterProc Virtual Host redirection of 
  /192.168.1.101/examples/hello.txt
  [Fri Apr 19 00:04:08 2002]  [jk_uri_worker_map.c (447)]: Into 
  jk_uri_worker_map_t::map_uri_to_worker
  [Fri Apr 19 00:04:08 2002]  [jk_uri_worker_map.c (464)]: Attempting
 to 
  map URI '/192.168.1.101/examples/hello.txt'
  [Fri Apr 19 00:04:08 2002]  [jk_uri_worker_map.c (478)]: 
  jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13
 - 
  /192.168.2.101/examples/hello.txt
  [Fri Apr 19 00:04:08 2002]  [jk_isapi_plugin.c (721)]:
 HttpFilterProc 
  [/examples/hello.txt] is a servlet url - should redirect to ajp13
  [Fri Apr 19 00:04:08 2002]  [jk_isapi_plugin.c (784)]:
 HttpFilterProc 
  check if [/examples/hello.txt] is points to the web-inf directory
  [Fri Apr 19 00:04:26 2002]  [jk_isapi_plugin.c (657)]:
 HttpFilterProc 
  started
  [Fri Apr 19 00:04:26 2002]  [jk_isapi_plugin.c (705)]: In 
  HttpFilterProc Virtual Host redirection of /192.168.1.101/examples/
  [Fri Apr 19 00:04:26 2002]  [jk_uri_worker_map.c (447)]: Into 
  jk_uri_worker_map_t::map_uri_to_worker
  [Fri Apr 19 00:04:26 2002]  [jk_uri_worker_map.c (464)]: Attempting
 to 
  map URI '/192.168.1.101/examples/'
  [Fri Apr 19 00:04:26 2002]  [jk_uri_worker_map.c (570)]: 
  jk_uri_worker_map_t::map_uri_to_worker, done without a match
  [Fri Apr 19 00:04:26 2002]  [jk_isapi_plugin.c (711)]: In 
  HttpFilterProc test Default redirection of /examples/
 
  [Fri Apr 19 00:04:26 2002]  [jk_uri_worker_map.c (447)]: Into 
  jk_uri_worker_map_t::map_uri_to_worker
  [Fri Apr 19 00:04:26 2002]  [jk_uri_worker_map.c (464)]: Attempting
 to 
  map URI '/examples/'
  [Fri Apr 19 00:04:26 2002]  [jk_uri_worker_map.c (489)]: 
  jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13
 - 
  /examples/
  [Fri Apr 19 00:04:26 2002]  [jk_isapi_plugin.c (721)]:
 HttpFilterProc 
  [/examples/] is a servlet url - should redirect to 

Re: XML configuration file..

2002-04-22 Thread Vincenzo Marchese

you can try using an URL for your configuration file storing the xml 
file in your webapp/yourapp directory.

InputSource sn = new InputSource(http://server/yourapp/AccessInfo.xml;);

You can also limit the access to the file using standard protection methods.

Another way to access you file is by putting it in the WEB-INF directory 
of your app and fetching an InputStream with
the getResourceAsStream method of  the ServletContext

InputSource sn = new 
InputSource(oCtx.getResourceAsStream(Accessinfo.xml));

(oCtx is your ServletContext object)

Cheers,
Vincenzo





Vijay Shinde wrote:

Hi All,

 I am using XML configuration file for setting application properties.
 I am using class InputSource to load the .xml file.The problem i am
facing is i need to give absolute path
 for my xml file e.g.

 InputSource sn = new InputSource(C:\\Program Files\\Apache Tomcat
4.0\\webapps\\vstruts\\AccessInfo.xml);

Apache has this directory in the path C:\Program Files\Apache Tomcat
4.0\common\classes

if i move my file at this path also it doesn't work .I don't know but it
is not picking file from relative path  .

If some one help me out that will be great.

Vijay



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


  



-- 
I have a friend whose a billionaire.  He invented Cliff's notes.  When
I asked him how he got such a great idea he said, Well first I...
I just... to make a long story short...
-- Steven Wright
-
  Vincenzo  Marchese
ARSRETIA S.r.l.
  Via D. Sansotta, 97
00144 Roma (IT)
e-mail: [EMAIL PROTECTED]
 Tel.: +39 06 52270097
 Fax: +39 06 52272313




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




classpath problem of widows

2002-04-22 Thread Prashant

hi 


i have written a servlet which shows all the java and tomcat property . 

when i run it  linux server it shows me the class path like this 

java.class.path=/temp5/sites/australia:/usr/java/jdk1.3.1/lib/td.jar:/usr/ja 
va/jdk1.3.1/lib/tools.jar:/usr/local/mm/mm.mysql-2.0.2-bin.jar:/usr/local/ja 
vamail/javamail-1.1.3/mail.jar:/usr/local/javamail/jaf-1.0.1/activation.jar: 
/usr/local/upload/lib/cos.jar:/usr/local/jaxp1.0/jaxp.jar:/usr/share/java/se 
rvlet-2.3.jar:/usr/local/jaxp1.0/parser.jar:.:/var/tomcat4/bin/bootstrap.jar 
Java class path BR 


when i run the same servlet in windows2000 server or any windows version 

it shows like this
s
java.class.path=C:\jdk1.4\lib\tools.jar;C:\Program Files\Apache Tomcat 
4.0\bin\bootstrap.jar 

 

can u find the reason behind it 

how can i get the classpath in windows platform . 

i have attach the servlet u can see 

 

My windows nt setting is like this . 

CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0
CLASSPATH=C:\jdk1.4\bin;C:\jdk1.4\lib;C:\jdk1.4\lib\servlet.jar;C:\PROGRA~1\ 
APACHE~1.0\WEBAPPS;D:\ACD;D:\ACD\SRC;C:\jdk1.4\lib\m
JAVA_HOME=C:\jdk1.4
PATH=C:\jdk1.4\bin;C:\jdk1.4\lib;C:\jdk1.4\lib\servlet.jar;C:\PROGRA~1\APACH 
E~1.0\WEBAPPS;D:\ACD;D:\ACD\SRC;;C:\PROGRA~1\APACHE~ 

 

my linux setting is like this 


CLASSPATH=/temp5/sites/australia:/usr/java/jdk1.3.1/lib/td.jar:/usr/java/jdk 
1.3.1/lib/tools.jar:/usr/local/mm/mm.mysql-2.0.2-bin.jar:/usr/local/javamail 
/javamail-1.1.3/mail.jar:/usr/local/javamail/jaf-1.0.1/activation.jar:/usr/l 
ocal/upload/lib/cos.jar:/usr/local/jaxp1.0/jaxp.jar:/usr/share/java/servlet- 
2.3.jar:/usr/local/jaxp1.0/parser.jar:.
JAVA_HOME=/usr/java/jdk1.3.1
JDK_HOME=/usr/java/jdk1.3.1
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/java/jd 
k1.3.1/bin:/home/himanshu/bin
TOMCAT_HOME=/var/tomcat4 



  package com.fc.servlets;

  import java.io.*;
  import java.util.Date;
  import java.util.Hashtable;
  import java.lang.System;
  import javax.servlet.*;
  import javax.servlet.http.*;


  public class servletinfo1 extends HttpServlet {
  public void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
  {
  Date today = new Date();
  res.setContentType(text/plain);

  ServletOutputStream out = res.getOutputStream();
  out.println(today.toString());


out.println(User.Dir= + System.getProperty(user.dir) + BR);
out.println(java.version= +  System.getProperty(java.version) +  Java 
version number BR);
out.println(java.vendor= +   System.getProperty(java.vendor) +  
Java vendor-specific string BR);
out.println(java.vendor.url= +  
System.getProperty(java.vendor.url) +  Java vendor URL BR);
out.println(java.home= + System.getProperty(java.home) + Java 
installation directory BR);
out.println(java.class.version= +  
System.getProperty(java.class.version) +  Java class format version  number 
BR);
out.println(java.class.path= +   
System.getProperty(java.class.path) +  Java class path BR);
out.println(os.name= + System.getProperty(os.name) +   Operating 
system name BR);
out.println(os.arch= + System.getProperty(os.arch) +Operating 
system architecture BR);
out.println(os.version= + System.getProperty(os.version)   +  
Operating system version BR);
out.println(file.separator= +
System.getProperty(file.separator) +  File separator ([/] on UNIX)BR);
out.println(path.separator= +   System.getProperty(path.separator) 
+  Path separator ([:] on UNIX) BR);
out.println(line.separator= +   System.getProperty(line.separator) 
+  Line separator ([\n] on UNIX)BR);
out.println(user.name= + System.getProperty(user.name) +  
User`s account name BR);
out.println(user.home= + System.getProperty(user.home) +
User`s home directory BR);
out.println(user.dir= + System.getProperty(user.dir) + User`s 
current working directory BR);
out.println(user.dir= + System.getProperty(user.dir) + User`s 
current working directory BR);
out.println(webmoney.properties= + 
System.getProperty(webmoney.properties) + User`s current working directory 
BR);

  }

  public String getServletInfo() {
  return Returns a string representation of the current time;
  }

  }



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


Re: Any mod_webapp + user-data-constraint gotchas in 4.0?

2002-04-22 Thread Øyvind Vestavik


I am way over my head here, but I once made a servlet whos methods should
only bee accessed over SSL. I Just made a secure port on 8443.
In my code I wrote

if (!request.isSecure)
   //make java.net.Url (using request.getHost() .getServletContext and so
 on (all though I didn't find a dynamic way to find the port of the
 server running SSL)
   redirect(myURL.toString())
Else
   //request is made over https. Proceed

Probably didn't answer your question, but..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Fri, 19 Apr 2002, Cavan Morris wrote:

 Hey guys,
 I'm getting ready to go live with my webapp and need to ensure confidentiality on my 
credit card billing page.

 I'm running Tomcat 4.0.2 on Redhat 7.2 with apache 2.0.32 and mod_webapp 1.0.2.  I 
just got my ssl certificate from verisign and set up apache to require ssl on port 
443.  HTTPS request to the site work great.
 I am trying to user the following security constraint in my web.xml to require ssl 
in certain areas.

 security-constraint
 web-resource-collection
 web-resource-nameSSL Area/web-resource-name
 url-pattern/user/*/url-pattern
 /web-resource-collection
 user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint

 I also set the redirect port on my warp connector like so in server.xml
 Connector className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=false redirectPort=443
  acceptCount=10 debug=0/

 The result...  Absolutely Nothing.
 The changes have no discernable effect, /user/* is not redirected.

 It may be important to note that I also have a standalone HTTP connector running 
that does is set to redirect to port 8443 but the site is being accessed through the 
warp connector.

 What am I missing here??  Any thoughts on this would be very helpful.
 -Cavan Morris


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

2002-04-22 Thread Øyvind Vestavik


The easy way in a servlet
:
Make a login servlet where the doGet() just prints a login form. The
servlet has to be accessed over https so that noone can pick
username/password. To ensure this you can make a test
in the doGet() and doPost():
if request.isSecure()...

Now you have the username and password. Do whatever you wan't with it, but
to know one user from another use session variables.

HttpSession session= request.getSession(true);
check the username password against the username password in the
sessionvariables. If not there you can set them.

Sessionvariables time out after 30 min (configurable in server.xml?)

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Mon, 22 Apr 2002, Vladimir Vanyukov wrote:

 I have seen this question here many times and have seen many answers but
 most of them never really ANSWERED the question. So I figured I'd ask
 one more time. Is there anyway to programmatically authenticate users?

 Example:
 If I have s simple username/password form somewhere on an unprotected
 page, how do I use that information (assuming the user filled it out and
 submitted it) to allow him to view protected pages?


 --
 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 2.0.35, tomcat 4.0.3 and mod_webapp

2002-04-22 Thread Simon Stewart

On Sat, Apr 20, 2002 at 10:04:35PM -0400, Jeffrey Bonevich wrote:
 Simon Stewart wrote:
 
 Yet more digging suggests that this could be a bug: attaching an
 strace to the httpd process as it starts up gives:
 
 write(2, Syntax error on line 1018 of /us..., 66) = 66
 write(2, Duplicate connection name\n, 26) = 26
 _exit(1)= ?
 
 Where line 1018 refers to:
 
 WebAppConnection warpConnection warp localhost:8008
 
 This is the first connection I've tried to set up, so it's a bit of a
 specious error IMHO. I've filed a bug report with the apache bugzilla
 installation (view it at:
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8331 )
 
 If anyone's got this working, I'd be fascinated to know how you did
 it
 
 
 I have, without the errors you mention.  I assume you compiled Apache 2 
 from source?  If so, send along the config.status file from your run of 
 configure.  Basically, I did this:
 
 cd ${APACHE_2_SRC_HOME}
 ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all
 make
 make install

Yes, I compiled Apache 2 from source. I thought that I'd edited the
server.xml file correctly, but had been caught out by the thinko in
it: my host name wasn't in the right place in the Engine section of
the Warp connector config. Once I'd sorted that bit out, things
quickly sorted themselves out

It's now up and running in the standalone Tomcat, but I'm now trying
to persuade the installation of tomcat 4.0.3 embedded in JBoss 3RC1 to
work as expected. For some reason, Apache is failing to connect to any
installed apps it might have. Guess that's a question for the jboss
list, though :)

FWIW, here's how I ran configure:

./configure --prefix=/usr/local/apache-2 --with-mpm=worker --enable-http \
--enable-headers --enable-dav --enable-dav-fs \ 
--enable-rewrite --enable-so

If you still want it, I can attach my config.status, but that's prolly
not necessary now

Thanks for your help!

Regards,

Simon

-- 
Don't you hate when your hand falls asleep and you know it will be up
all night. --- Steven Wright

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




javax.servlet.ServletException: Cannot create bean of class MoniTestBean

2002-04-22 Thread chuck amadi

I have a problem with the following i have created and compiled my 
JavaBeans in my Web-Inf /classes folder and everythings fine .

Thus i have the useBean tag as follows:

*jsp:useBean id=formHandler scope=request class=MoniTestBean/
jsp:setProperty name=formHandler property=*/

And also the request.getParameter test but due the the non creation of 
the bean in the stack trace thus the jvm from the server is causing me 
this dilema.

Any suggestions my set-up: RHlinux v7.2 JTomcat v3.3a as Tomcat v4 
didn't function properly and Netbeans IDE 3.2.2 Text Editor Emacs.

%=request.getParameter(surName)%
%=request.getParameter(foreName)%
%=request.getParameter(monDisable)%

Thus the return value was null as the bean cannot create/intialate itself.

* Internal Servlet Error:*

javax.servlet.ServletException:  Cannot create bean of class MoniTestBean

I have posted this problem a few times and unfortunately no suggestions 
, i have gone through the usual procedures .

Cheers Chuck Amadi
Systems Programmer





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




Tomcat and XSLT transformations

2002-04-22 Thread cyril vidal





 Nobody has the solution for my problem, please?

 Does Tomcat 4.0.1 assume some xslt transformations by default?
  I've put the following .jar files (xalanservlet.jar,
 xalan.jar,xercesImpl.jar, xml-apis.jar, xsltc.jar) in C:\tomcat\lib, as
 written in thedoc of tomcat, so that these files may be shared by all the
 applications.But it doesn't run.

 Unfortunelately, I get the following exception:
 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: Cannot allocate servlet instance for path
 /examples/servlet/TransformServlet
 at
 org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
 :415)
 at
 org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:243)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:201)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:472)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
 )
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :163)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1011)
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
 )
 at java.lang.Thread.run(Thread.java:484)


 root cause

 java.lang.NoClassDefFoundError: javax/xml/transform/Source
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:820)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
 org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
 :396)
 at
 org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
 at
 

documentation location

2002-04-22 Thread Øyvind Vestavik


Where can i find javadoc for this package??
package javax.mail.*

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911




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




Re: Tomcat 4 + Apache 2 + mod_webapp HOWTO

2002-04-22 Thread Alex Potter

Jeff

Many thanks - followed your directions and it works (after a week of banging
my head on the wall!)

Alex

- Original Message -
From: Jeffrey Bonevich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 4:20 AM
Subject: Tomcat 4 + Apache 2 + mod_webapp HOWTO


 Hey all!  Just wanted to post this brief bit o' documentation to the
 list for future users running into the same quagmire (or at least until
 mod_webapp/connectors under Apach 2 get straightened out).

 Much thanx to Georg Huettenegger [EMAIL PROTECTED] and Emil Olovsson
 [EMAIL PROTECTED] for helping me get this up and running.




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




AW: documentation location

2002-04-22 Thread Ralph Einfeldt


http://java.sun.com/products/javamail/1.2/docs/javadocs/index.html

 -Ursprüngliche Nachricht-
 Von: Øyvind Vestavik [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 22. April 2002 13:36
 An: Tomcat Users List
 Betreff: documentation location
 
 
 
 Where can i find javadoc for this package??
 package javax.mail.*
 

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




Re: AW: documentation location

2002-04-22 Thread Øyvind Vestavik


Thanks. Should have found it myself. Stupid, but thanks anyway..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Mon, 22 Apr 2002, Ralph Einfeldt wrote:


 http://java.sun.com/products/javamail/1.2/docs/javadocs/index.html

  -Ursprüngliche Nachricht-
  Von: Øyvind Vestavik [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 22. April 2002 13:36
  An: Tomcat Users List
  Betreff: documentation location
 
 
 
  Where can i find javadoc for this package??
  package javax.mail.*
 

 --
 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]




SecurityManager and codeBase

2002-04-22 Thread Rune Hamnvik

Hello
We planned to start using the SecutiryManager on our Tomcat installations,
but we have problems getting the SecurityManager to work as supposed to. We
have a project located under the webapps catalog called isp. The application
works well if we set up the catalina.policy file with the following rules
(specifying no codeBase):
grant {
  permission java.net.SocketPermission localhost:1599, connect; //
Naming lookup
  permission java.net.SocketPermission localhost:43163, connect;
// EJB lookup
  permission java.net.SocketPermission localhost:, connect; //
RMI to EJB server
  permission java.net.SocketPermission localhost:389, connect;  //
LDAP access
  permission java.net.SocketPermission localhost:25, connect;   //
SMTP access
  permission java.lang.RuntimePermission accessDeclaredMembers;
  permission java.security.SecurityPermission insertProvider.SunJCE;
  permission java.util.PropertyPermission *, read,write;
};

But if add the codeBase attribute to the grant part, the application stops
working. Here is the updated grant part:

grant codeBase file:${catalina.home}/webapps/isp/- {
  permission java.net.SocketPermission localhost:1599, connect; //
Naming lookup
  permission java.net.SocketPermission localhost:43163, connect;
// EJB lookup
  permission java.net.SocketPermission localhost:, connect; //
RMI to EJB server
  permission java.net.SocketPermission localhost:389, connect;  //
LDAP access
  permission java.net.SocketPermission localhost:25, connect;   //
SMTP access
  permission java.lang.RuntimePermission accessDeclaredMembers;
  permission java.security.SecurityPermission insertProvider.SunJCE;
  permission java.util.PropertyPermission *, read,write;
};

Are we doing any wrong ? We have tested on both RedHat 7.2 and Win 2000,
using JDK1.4.0. We have tried Tomcat 4.0.1, 4.0.3 and the 4.0.4 beta 2
version.

We know of the bug report: Bugzilla Bug 7319 codeBase in catalina.policy
broken with jars
But this bug seems to have been rejected.

Anyone have any idea ?

Rune Hamnvik
Mobinor
Norway


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




AW: AW: documentation location

2002-04-22 Thread Ralph Einfeldt

Never mind. 

As we say here in gemany: 

Self-knowledge is the first step of improvement :)

 -Ursprüngliche Nachricht-
 Von: Øyvind Vestavik [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 22. April 2002 13:44
 An: Tomcat Users List
 Betreff: Re: AW: documentation location
snip/
 Thanks. Should have found it myself. Stupid, but thanks anyway..
snip/

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




not reading system classpath in windows

2002-04-22 Thread Prashant


Hello sir. 

I'm testing one web application written in java on linux and windows both. 

On linux system.getProperty(java.class.path) this shows me following 
classpath : 

$SYSTEM_CLASSPATH:{$CATALINA_HOME}\bin\bootstrap.jar 


however on windows machine it is just showing me : 

{$CATALINA_HOME}\bin\bootstrap.jar 


I've tried editing the .bat files of tomcat but no success ... 

can some1 please help me out for this . 

Thankin you,
Prashant 

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




RE: not reading system classpath in windows

2002-04-22 Thread Shiva.Devaguptapu

Hi,
Can anyone tell me the steps involved in installing the tomcat on
linux machine and integrating it with apache running on it..
Thanks,
Shiva.

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




Resolution to JNDI DataSource=null problem

2002-04-22 Thread Nick Johnson

After fighting with this thing all day, I've finally achieved resolution
to the problem.  I had so many things going wrong, it's a wonder I ever
solved the problem.

Just to recap: the problem was that whenever I looked up a jdbc DataSource
object, it was found, but it was always null, so null pointer exceptions,
and blah blah blah.  I implemented a short-term workaround that falls back
to making a brute-force jdbc connection, but I was never happy with that.

First, my postgresql.jar had a conspicuously different size than the
binary posted on their homepage.  It turns out that when I built mine, I
hadn't yet installed the JDBC optional package, and it wasn't in my
classpath (obviously since it wasn't there), so the build process built it
without XA support. To compound matters, I'd never downloaded jta.jar, or
at least didn't have it installed for whatever reason.  This was easily
corrected and I installed the new postgresql.jar.

Still, things were not working, and I battled for a long time before I
realized I was doing something really profoundly stupid (isn't that always
what happens?)  While Googling, I happened upon a discussion of JNDI on
the jguru site that mentioned words about Contexts and Paths and JNDI.  As
it turns out, I had foolishly misconfigured my Context, or at least I had
it configured differently than I thought. While I was mucking with things
earlier, I moved the docbase (don't ask why) and didn't change the path
from the null path.  But like an idiot, I was accessing my test servlet as
http://localhost/new_docbase/test instead of http://localhost/test.  There
is a huge difference.  /test knew about resources in the proper context.
/new_docbase/test did not.

But the fun was not yet to quit.  Now I started getting
classCastExceptions; it was griping that a EnabledDataSource could not be
cast to a DataSource, which is silly, since obviously it can.  The problem
turned out to be a bunch of junk .jar files in the webapp's lib directory,
which I happily rm'ed.  I'm not sure what they were doing there in the
first place.  Their presense was clearly causing some kind of conflict and
no doubt confusing the hell out of the poor JRE.

Then I started getting connections, and threw a small party to celebrate.
They weren't pooling properly, and I found some notes on the net about
that as well.  Instead of getting a datasource from the contect:
DataSource ds = (DataSource)envCtx.lookup(jdbc/datafoo);
Connection c = ds.getConnection();
To get a connection from a pool with Tyrex, one does this:
ConnectionPoolDataSource pds = 
(ConnectionPoolDataSource)envCtx.lookup(jdbc/datafoo);
PooledConnection ds = pds.getPooledConnection();
Connection c = ds.getConnection();

Hopefully my experiences here will be of help to others by way of
searching the list :)

   Nick

-- 
The aptly-named morons.org is an obscenity-laced screed...
-- Robert P. Lockwood, Catholic League director of research
Nick Johnson, version 2.0 http://www.spatula.net/



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




Re: documentation location

2002-04-22 Thread Me

Google is your friend!

http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/mail/package-summary.h
tml


EG

- Original Message -
From: Øyvind Vestavik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 1:36 PM
Subject: documentation location



Where can i find javadoc for this package??
package javax.mail.*

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911




--
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]




mod_jk problem for Apache2

2002-04-22 Thread Main, David

I would like to upgrade from (a working!) Apache1.3 setup to Apache2 but am having 
problems getting mod_jk to work. 

I built Apache2 and then built mod_jk for Apache2 then added mod_jk.dll to /modules 
and added the following to httpd.conf:

LoadModule jk_module modules/mod_jk.dll
JkWorkersFile d:/java/jakarta-tomcat-4.0.1/conf/workers.properties
JkLogFile d:/java/jakarta-tomcat-4.0.1/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkMount /calendar/* ajp13


When I try to access http://localhost/calendar/index.jsp, I get the following apache 
error: handler jakarta-servlet not found for: index.jsp 

The following lines are from mod_jk.log for this request:

[Mon Apr 22 13:16:43 2002]  [jk_worker.c (158)]: wc_create_worker NULL factory for 
ajp13*ajp13
[Mon Apr 22 13:16:43 2002]  [jk_worker.c (244)]: build_worker_map failed to create 
workerajp13


Does anyone have any ideas why this setup isn't working? I'd much appreciate any help. 
Thanks,

David

PS. I'm running Tomcat 4.0.1 on Win 2000 and I've left workers.properties and 
server.xml as they were for the working Apache1.3/mod_jk setup.

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




session expiree

2002-04-22 Thread Sudhir

Hi,

Can anybody tell me if the user closed the window without logging out but pressing the 
X button of the browser, how do we close the
session.

Thanks and Best Regards,

Venkata Sudhir Kurapati


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




Re: How can I get the location of the webapps-directory?

2002-04-22 Thread Rajesh Nair

Hi
I think u can try getContextPath() which will give u the root of ur web application 
.To get access to resources inside WAR or other archive files u can use the method 
getResource(String URIPath);
 If the context is in a different m/c u can use getContext() to get the context first 
and then use either getResource() or getResourceAsStream() methods

*** REPLY SEPARATOR  ***

On 4/19/02 at 3:22 PM Eichfelder, Frank wrote:

Hi,

how can I get the location from the webapps-directory on my filesystem?

It's easy, if I use

String path = getServletContext().getRealPath(/);

and then cut off the last part:

int index = path.lastIndexOf(System.getProperty(file.separator),
path.length()-2 );

path = path.substring(0, index);

But this works only, if you have your webapplication unpacked in the
file-system or if you have set unpackWars=true.

Now, I have set unpackWars=false, and now I get null for
getServletContext().getRealPath(/).

Is there any possibility to get the name of the war-File an application is
stored in or the name of the directory the war-file is stored in?

Thanks,

Frank

--
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: Hello sir/madam,

2002-04-22 Thread Hugh Brien

Check the README file that comes with the MySQL JDBC driver.  It explains
how to fix this
- Original Message -
From: David Rault [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 5:06 AM
Subject: Re: Hello sir/madam,


 this is a typical mysql problem
 (maybe not the best place to ask for help...)

 anyway, you need to grant access to your user sal for the ip adress of
your
 tomcat server and the databases you need to access

http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Adm
 inistration.html

 see GRANT and REVOKE syntax, there are examples
 David
 - Original Message -
 From: ganesh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, December 31, 1999 10:14 PM
 Subject: Hello sir/madam,


 Hello sir/madam,
 We are testing with MYSQL on the remote unix server with the tomcatserver
 loaded on the server.Butwe are not able to access the database.

 The error we are getting is INvalid authorisation specification Access
 denied for user [EMAIL PROTECTED] ( Using password:YES)

 Waiting for your quick reply.

 Thanking you.
 ganesh





 --
 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]




Invalid WARP packet type for body

2002-04-22 Thread Irina Tkatch

Hi,
We tried to integrate Apache 1.3.20 and Tomcat 4.0.1 using WARP connector
but from time to time an IOException (Invalid WARP packet type for body) is
thrown.
I read that this problem is not a new one.
Is WARP connector the only possible way to connect between them?
And how scalable is standalone Tomcat as a WEB server?

We tried to perform some load testing against standalone Tomcat server and
the results are poor.


Thanks in advance,
Irina Tkatch





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




Re: Is Tomcat/MySQL a suitable combination in a production environmentunder Windows 2000 Pro?

2002-04-22 Thread Hugh Brien

At my company of 50 people, we use Tomcat 4.0/MySql for our portal site and
our internal user site.
So far they have been very reliable.
r,
Hugh
- Original Message -
From: Adrian Beech [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Sunday, April 21, 2002 5:45 AM
Subject: Is Tomcat/MySQL a suitable combination in a production environment
under Windows 2000 Pro?


Hi folks,

Is Tomcat/MySQL stable enough to deploy as a production platform under
Windows 2000 Pro?  I'm looking for a suitable platform to publish data
driven web pages in a local Intranet environment.  At present we are using
PWS/MS Access  under Windows 95.  I'd like to move onto something which is
slightly more robust solution that doesn't cost the earth... actually if it
doesn't cost nothing then much the better!

Adrian
[EMAIL PROTECTED]




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




Running Tomcat in a cluster

2002-04-22 Thread scheung5

Hi,

I have setup Tomcat running in a cluster and have apache as my load-balancer (using 
mode_jk). I have a servlet running in all my Tomcats and it is looking for a parameter 
url for every requset. i.e. the proper way to invoke the servlet is 
http://localhost/myservlet?url=http://www.yahoo.com

Is it possible for me to config Tomcat/Apache (with mod_jk) so that I can Apache as my 
proxy   for my browser, and I just need to type http://www.yahoo.com; it will trigger 
my servlet with the url parameter set? 
i.e. http://www.yahoo.com -- http://localhost/myservlet?url=http://www.yahoo.com 

Thanks.




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

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


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




apache and tomcat

2002-04-22 Thread kagus ting


Hi,

I want to connect apache and tomcat together so that everytime i start my
apache it can also listen to any request bound to Tomcat. Any tutorials on
this matter. im using win98 with Apache and Tomcat and Linux with Apache
and Tomcat.

Any help will be apprciated.

gustin

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




Re: mod_jk problem for Apache2

2002-04-22 Thread Jeffrey Bonevich

David -

I have seen several postings to the list that mod_jk does not work under 
Apache 2 yet.  Not sure when it will.  And I am probably wrong.  I could 
not get it working either.  I did have success getting mod_webapp up and 
running.  For starters, see for details:

http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg51745.html

jeff

Main, David wrote:

 I would like to upgrade from (a working!) Apache1.3 setup to Apache2 but am having 
problems getting mod_jk to work. 
 
 I built Apache2 and then built mod_jk for Apache2 then added mod_jk.dll to /modules 
and added the following to httpd.conf:
 
 LoadModule jk_module modules/mod_jk.dll
 JkWorkersFile d:/java/jakarta-tomcat-4.0.1/conf/workers.properties
 JkLogFile d:/java/jakarta-tomcat-4.0.1/logs/mod_jk.log
 JkLogLevel info
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkMount /calendar/* ajp13
 
 
 When I try to access http://localhost/calendar/index.jsp, I get the following apache 
error: handler jakarta-servlet not found for: index.jsp 
 
 The following lines are from mod_jk.log for this request:
 
 [Mon Apr 22 13:16:43 2002]  [jk_worker.c (158)]: wc_create_worker NULL factory for 
ajp13*ajp13
 [Mon Apr 22 13:16:43 2002]  [jk_worker.c (244)]: build_worker_map failed to create 
workerajp13
 
 
 Does anyone have any ideas why this setup isn't working? I'd much appreciate any 
help. Thanks,
 
 David
 
 PS. I'm running Tomcat 4.0.1 on Win 2000 and I've left workers.properties and 
server.xml as they were for the working Apache1.3/mod_jk setup.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


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




Re: Security

2002-04-22 Thread Timothy Fisher

I think that most of the responses I've seen here to
the original question are missing the point.

I understand the question as he's wondering whether or
not you could programatically authenticate a user,
such that the container would then recognize the user
as being authenticated and not require another login
when viewing pages designated as protected by the
container.

The solutions that people are pointing out are simple
roll your own authentication solutions that are
completely independent of declarative
(container-managed) security.

Tim

--- Joel Rees [EMAIL PROTECTED] wrote:
 Vladimir Vanyukov asked
 
 
  I have seen this question here many times and have
 seen many answers but
  most of them never really ANSWERED the question.
 So I figured I'd ask
  one more time. Is there anyway to programmatically
 authenticate users?
 
 Is there any way for a computer to recognize the
 person operating it? Nope.
 So the next best thing is passwords. (Or retinal
 imprints, which are a fancy
 sort of password with fewer problems.)
 
 If the password is never put on the network, there
 is no way for the
 password to be stolen from the network. You only
 have to worry about the
 likes of trojan horses and non-descript vans on the
 street outside with
 expensive telemetry equipment that can interpret
 noise from your keyboard,
 etc.
 
 If the password gets out on the network, it can be
 observed.
 
  Example:
  If I have s simple username/password form
 somewhere on an unprotected
  page, how do I use that information (assuming the
 user filled it out and
  submitted it) to allow him to view protected
 pages?
 
 Unless I am totally confused, you don't.
 
 You let him/her connect to a secured page (https)
 to login. The login page
 works with the browser to encrypt things like
 passwords before they are put
 on the network. That way, you don't have to worry as
 much about whether the
 password is observed, because you can be fairly
 confident that the observer
 can't read it. (If you set things up well.)
 
 And you don't let him/her proceed from the login
 page unless he/she supplies
 a valid password.
 
 Now, if I have this description wrong, will someone
 who really knows please
 correct me? There ought to be a page somewhere in
 the on-line docs that
 tells you how to have Tomcat negotiate this stuff
 for you. I wonder where
 that could be? Hmm. This looks kind of promising:
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html
 
 Joel Rees
 Alps Giken Kansai Systems Develoment
 Suita, Osaka
 
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




Re: Html/jpg from db to client?

2002-04-22 Thread Jeffrey Bonevich

Nope.  Only need two at most.  Each of them sets their own content type 
(image streamer sets it to image/jpg, HTML producer to text/html). 
And in answer to your other question, yes, this could be reduced to just 
one servlet that does conditional setting of content-type and content. 
But you will then need a querystring (or other) key/value pair to do the 
conditional on.  Suppose your HTML page url is /servlets/showimage/1. 
Suppose the 1 in the subpath is the id for the image.  Then you need 
to have a switch in the URL to tell it whether you are getting html or 
image: /servlets/showimage/1?show=1

SO now your HTML page is accessed with the URL /servlets/showimage/1 and 
inside that page is embedded an img src=/servlets/showimage/1?show=1 
height= + image height +  width= + image width +  

Then in your showimage servlet, you grab the show request parameter 
and, if it is present/equals 1, then set content type to image and 
stream the image, otherwise set content type to html and output HTML (or 
forward to JSP - just be sure to stick the image info somewhere in a 
context so you can access it in the JSP page).

Make sense?

jeff

john-paul delaney wrote:

 On Mon, 22 Apr 2002, Nikola Milutinovic wrote:
 
 Thanks Nix... then I'm thinking I need three servlets to handle for each page sent 
to the client... 1. Write the html header, 2. Get image from db and send the image, 
3.Add in dimensions to img tag  add the footer.  
 
 Is this correct?
 
 regards
 /j-p.
  
 
If you wish to send BOTH html and the image in the same invocation of the servlet, 
then you're mistaken. HTTP/HTML, in general, doesn't work that way. You should make a 
servlet which can retrieve a single picture, something like:

/servlets/showImage?src=my_test_pic.gif

Then make your servlet accept src parameter, retrive the image from the database. 
Based on the extension you should set the correct MIME type, in this case image/gif 
and send it. You should set Response-contentType to your MIME type and open a 
servlet output stream in the Response and just splash your image into it.

 
 
 ---
  JUSTATEST Art Online
   www.justatest.com
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


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




Re: apache and tomcat

2002-04-22 Thread @Basebeans.com

Subject: Re: apache and tomcat
From: Bruno V [EMAIL PROTECTED]
 ===
I tried to search for guides and howto to install Tomcat and Apache WITH 
a WARP connector (mod_webapp)

Here is what I found so far :

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.jsp 
codesta  by Joseph Molnar April 17, 2002

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
SUN  by Don MacVittie December 20, 2001

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html
Tomcat  (few info)

http://www.galatea.com/flashguides/
Galatea Flashguides  recents How-To (too short ?)

http://www.ajug.org/howto/tomcat4.html
ajug.org focus on Linux (Atlanta Java Users Group)


I will try to keep it up to date on 
http://bruno.vernay.free.fr/HowTo/bWebServerHowTo/pr01.html

I guess that there are better place for this kind of info, but didn't 
find it.


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




Re: SecurityManager and codeBase

2002-04-22 Thread Olivier Chicha

Hi,

On redhat the xmlparser jar file (xerces.jar) is  installed in
/usr/share/java

If you don't grant read access to this repository, you will not be able
to start tomcat.

If this is not the problem, you should try to start tomcat with the
following
command : tomcat4 run -security and you will probably have an exception
teling you which security acces is not granted

good luck

Olivier

___
http://www.robostrike.com : Online multiplayer game
___
- Original Message -
From: Rune Hamnvik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 1:58 PM
Subject: SecurityManager and codeBase


 Hello
 We planned to start using the SecutiryManager on our Tomcat installations,
 but we have problems getting the SecurityManager to work as supposed to.
We
 have a project located under the webapps catalog called isp. The
application
 works well if we set up the catalina.policy file with the following rules
 (specifying no codeBase):
 grant {
   permission java.net.SocketPermission localhost:1599, connect; //
 Naming lookup
   permission java.net.SocketPermission localhost:43163, connect;
 // EJB lookup
   permission java.net.SocketPermission localhost:, connect; //
 RMI to EJB server
   permission java.net.SocketPermission localhost:389, connect;  //
 LDAP access
   permission java.net.SocketPermission localhost:25, connect;   //
 SMTP access
   permission java.lang.RuntimePermission accessDeclaredMembers;
   permission java.security.SecurityPermission insertProvider.SunJCE;
   permission java.util.PropertyPermission *, read,write;
 };

 But if add the codeBase attribute to the grant part, the application stops
 working. Here is the updated grant part:

 grant codeBase file:${catalina.home}/webapps/isp/- {
   permission java.net.SocketPermission localhost:1599, connect; //
 Naming lookup
   permission java.net.SocketPermission localhost:43163, connect;
 // EJB lookup
   permission java.net.SocketPermission localhost:, connect; //
 RMI to EJB server
   permission java.net.SocketPermission localhost:389, connect;  //
 LDAP access
   permission java.net.SocketPermission localhost:25, connect;   //
 SMTP access
   permission java.lang.RuntimePermission accessDeclaredMembers;
   permission java.security.SecurityPermission insertProvider.SunJCE;
   permission java.util.PropertyPermission *, read,write;
 };

 Are we doing any wrong ? We have tested on both RedHat 7.2 and Win 2000,
 using JDK1.4.0. We have tried Tomcat 4.0.1, 4.0.3 and the 4.0.4 beta 2
 version.

 We know of the bug report: Bugzilla Bug 7319 codeBase in catalina.policy
 broken with jars
 But this bug seems to have been rejected.

 Anyone have any idea ?

 Rune Hamnvik
 Mobinor
 Norway


 --
 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]




Apache and Tomcat on Linux6.2

2002-04-22 Thread Shiva.Devaguptapu

Hi,
Can anyone tell me the steps involved in installing the tomcat on
linux machine and integrating it with apache running on it..
Thanks,
Shiva.

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




Connectors

2002-04-22 Thread Anthony W. Marino

Should I / can I use coyote connectors for TC4 integration with Apache2 ???
Or should I stick with AJP1.3???

Thank You,
Anthony

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




create a new web application .?

2002-04-22 Thread staginfo-ar

Hi,
I'm working with tomcat end iis.
Isapi redirector runs good. And no difficulties in running /examples from
iis.
How can I run new web application? How can i run a jsp whereas its
directory is not in /tomcat?
Thanks
jc


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




realm parameter from config file

2002-04-22 Thread Sasvari, Zsolt

How can I read a realm parameter from a Realm class? For example I have a
TestRealm that I have set for my webapp:
TestRealm something=anything /
How can I get the value of parameter something from the TestRealm class?

Thanks,
Zsolt

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




Tomcat and Apache 2

2002-04-22 Thread Simon Stewart

There have been quite a few posts about how to integrate Apache 2 and
Tomcat 4, and Jeff Bonevich has posted a HOWTO here, which you may
have already read.

I've taken the HOWTO, edited it a bit and added some extra notes on
using Apache, Tomcat and JBoss 3 and put it on a website, because I
know that this is a hugely frustrating thing to have to work through
and having something like this might make life that little bit easier.

If you're interested:

http://www.pubbitch.org/jboss.html

Let me know if you spot any typos ;)

Regards,

Simon

-- 
I've gone through over-stressed to physical exhaustion... what's next?
Tuesday --- Simon Burr  Kyle Hearn

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




Re: session expiree

2002-04-22 Thread Chinni . Venkateswara


You can try with ONUNLOAD event.

---

V R Chinni (DPRA).
Contractor for EPA.
214-665-6783
---




   

  Sudhir   

  [EMAIL PROTECTED]To:   
[EMAIL PROTECTED]
  m.sgcc: 

   Subject:  session expiree   

  04/22/02 04:26 AM

  Please respond to

  Tomcat Users List

   

   





Hi,

Can anybody tell me if the user closed the window without logging out
but pressing the X button of the browser, how do we close the
session.

Thanks and Best Regards,

Venkata Sudhir Kurapati


--
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]




Deploying and Catalina Class Loader

2002-04-22 Thread Marieka Prince

Hello,

I am writing an application that accesses the Catalina internals. I 
understand that the classes I need in the $CATALINA_HOME/server directory 
are not visible my web application. My application is actually working but I 
have a question regarding deployment.

It is a simple application but classes are not centralized under my 
applications WEB-INF, so deployment is currently not as quick and clean as a 
typical web app.

My classes currently reside under the following directories:
$CATALINA_HOME/server/classes : servlet that accesses the 
org.apache.catalina classes and sets variables in my Beans
$CATALINA_HOME/common/classes : my Beans
$CATALINA_HOME/webapps/myApp : Jsp that accesses Beans

Am I missing something ? Can I somehow centralise my classes ? Is the only 
solution writing a shell script to place each directory individually  ? Any 
help or comments would be appreciated.
Thank you,
Marieka

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Tomcat and Apache 2

2002-04-22 Thread Alex Potter

Simon

an excellent document, however, the location of the  mod_webapp connector
source is given incorrectly on the web page, I guess the jakarta guys moved
it?

The correct location is

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jakar
ta-tomcat-connectors-4.0.2-01-src.tar.gz

http://makeashorterlink.com/?G22365CB

HTH

Alex


- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 3:23 PM
Subject: Tomcat and Apache 2


 There have been quite a few posts about how to integrate Apache 2 and
 Tomcat 4, and Jeff Bonevich has posted a HOWTO here, which you may
 have already read.

 I've taken the HOWTO, edited it a bit and added some extra notes on
 using Apache, Tomcat and JBoss 3 and put it on a website, because I
 know that this is a hugely frustrating thing to have to work through
 and having something like this might make life that little bit easier.

 If you're interested:

 http://www.pubbitch.org/jboss.html

 Let me know if you spot any typos ;)

 Regards,

 Simon

 --
 I've gone through over-stressed to physical exhaustion... what's next?
 Tuesday --- Simon Burr  Kyle Hearn

 --
 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 and Apache 2

2002-04-22 Thread Simon Stewart

Something had to slip through the net, didn't it ;) Thanks for
pointing that out; I've updated the HOWTO with your suggested URL.

On Mon, Apr 22, 2002 at 03:44:07PM +0100, Alex Potter wrote:
 Simon
 
 an excellent document, however, the location of the  mod_webapp connector
 source is given incorrectly on the web page, I guess the jakarta guys moved
 it?
 
 The correct location is
 
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jakar
 ta-tomcat-connectors-4.0.2-01-src.tar.gz
 
 http://makeashorterlink.com/?G22365CB
 
 HTH
 
 Alex

Cheers,

Simon

-- 
Even had to open up the case and gaze upon the hallowed peace that
graced the helpdesk that day. -- Megahal (trained on asr), 1998-11-06

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




Problems with Tomcat 4.0.3 and Apache 2. PLEASE HELP

2002-04-22 Thread Sefton, Adam

Sorry for bringing this up again ... but I am having real problems getting Apache to 
start once I've modified the httpd.conf file.

I am running Win2K with Tomcat 4.0.3 and Apache 2, and I have followed a variety of 
instructions I found on this mailing list (thanks all).

I have:

-altered the httpd.conf file to contain the following:
LoadModule webapp_module modules/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/

-added the modwebapp.so file to the {apachehome}/modules/ directory
-added the libapr.dll to the C:\WINNT\system32 directory
-modifed the tomcat server.xml file
-added the coyote jar files as suggested at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1.0-b8/
-added the coyote connector info into the server.xml file as directed

Tomcat will start fine, on port 8080 as expected.

When I try to start Apache from the Monitor, I get an dialog box displaying:
The Requested Operation has failed
with no more information. Also, no information is being written to error.log nor any 
other log file that I can find.

If I comment out the three lines I entered into the httpd.conf file, then the server 
starts fine.

Has anyone else had this problem, and do they know how to fix it or what I'm doing 
wrong 

Thanks for any help you can give me,

Adam Sefton


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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




Getting URL of protected resource in form-based authentication

2002-04-22 Thread Riney, John

Hello, all. Long time user, first time poster.

I have a few resources behind a security-constraint block in my web.xml.
I've got form-based authentication turned on. The login form is a JSP
called, oddly enough, Login.jsp. I really need to find out, from Login.jsp,
the URL of the protected resource the user tried to access. Make sense? If I
wanted to go to /FooServlet, and Tomcat sent me to Login.jsp first, I'd like
to, within Login.jsp, make a call and get a String (or a URL, or a URI, I'm
not picky) that says /FooServlet.

I need this so I can give the user various reassuring hints and handholding,
depending on what resource they're trying to access. And since I can only
define one form-login-page, I need to do it programmatically.

Also, while we're on the subject, another question. Is there a way to
programmatically change where the j_security_check action sends you after it
authenticates? What I'd really like to do is, if the name of the protected
resource you're trying to access is empty or null (if, say, the user goes to
the login form directly, instead of trying to access a protected resource),
tell j_security_check to send you to some neutral page, instead of failing
with a Invalid direct reference to form login page like it does now. That
would be spiffy.

Thanks a lot,

--John Riney
Software Engineer, Arthur D. Little, Inc.

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




IIS and Tomcat on Different Machine?

2002-04-22 Thread Sandeep Contractor

Has anybody integrated IIS and Tomcat when they reside on different physical machines?

please help asap if anybody has.

sandeep



RE: Tomcat and Apache 2

2002-04-22 Thread Collins, Jim

Why couldn't you have posted this three weeks earlier :)

 -Original Message-
 From: Simon Stewart [mailto:[EMAIL PROTECTED]]
 Sent: 22 April 2002 16:03
 To: Tomcat Users List
 Subject: Re: Tomcat and Apache 2
 
 
 Something had to slip through the net, didn't it ;) Thanks for
 pointing that out; I've updated the HOWTO with your suggested URL.
 
 On Mon, Apr 22, 2002 at 03:44:07PM +0100, Alex Potter wrote:
  Simon
  
  an excellent document, however, the location of the  
 mod_webapp connector
  source is given incorrectly on the web page, I guess the 
 jakarta guys moved
  it?
  
  The correct location is
  
  
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
.0.3/src/jakar
 ta-tomcat-connectors-4.0.2-01-src.tar.gz
 
 http://makeashorterlink.com/?G22365CB
 
 HTH
 
 Alex

Cheers,

Simon

-- 
Even had to open up the case and gaze upon the hallowed peace that
graced the helpdesk that day. -- Megahal (trained on asr), 1998-11-06

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


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




domain:8080

2002-04-22 Thread Rick Fischer

Our web site domain name is hudsonwholesalers.com

The site starts with a servlet : startup.class (in a package called 'hudson')

My Tomcat hosting service tells me the users must use 
www.hudsonwholesalers.com:8080.  Since this is not reasonable I had to use 
a redirect in index.html to 
http:\\www.hudsonwholesalers.com:8080/hudson/servlet/hudson.startup

I would like users to simple start the site with 
www.hudsonwholesalers.com.  What do we need to do this

Thanks


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




RE: Tomcat and Apache 2

2002-04-22 Thread Tim Cronin

Under w2k I was unable to use mod_webapp

http://www.tek-tips.com/gfaqs.cfm/lev2/3/lev3/22/spid/65/sfid/1552


-Original Message-
From: Collins, Jim [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 10:13 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat and Apache 2


Why couldn't you have posted this three weeks earlier :)

 -Original Message-
 From: Simon Stewart [mailto:[EMAIL PROTECTED]]
 Sent: 22 April 2002 16:03
 To: Tomcat Users List
 Subject: Re: Tomcat and Apache 2
 
 
 Something had to slip through the net, didn't it ;) Thanks for
 pointing that out; I've updated the HOWTO with your suggested URL.
 
 On Mon, Apr 22, 2002 at 03:44:07PM +0100, Alex Potter wrote:
  Simon
  
  an excellent document, however, the location of the  
 mod_webapp connector
  source is given incorrectly on the web page, I guess the 
 jakarta guys moved
  it?
  
  The correct location is
  
  
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
.0.3/src/jakar
 ta-tomcat-connectors-4.0.2-01-src.tar.gz
 
 http://makeashorterlink.com/?G22365CB
 
 HTH
 
 Alex

Cheers,

Simon

-- 
Even had to open up the case and gaze upon the hallowed peace that
graced the helpdesk that day. -- Megahal (trained on asr), 1998-11-06

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


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



--
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: initializing Session state during realm login

2002-04-22 Thread Rick Fincher

Hi Tim,

Your main (or index) page is your init page. After a successful login you
can get the username and role from the request object with the
getRemoteUser() and isUserInRole(roleNameString) methods.

If you need more data than that you can try stuffing data into the session
in your login form.  I haven't tried that so I'm not sure if the session at
the login is the same as your program's session.

Rick


 I'm trying to use a custom Realm and FORM authentication.

 I need to be able to initialize session data after successful login.

 I found information on needing to create a Custom Authenticator.
 http://mikal.org/interests/java/tomcat/archive/view?mesg=56125
 I'm worried about having muck with tomcat internals to do this.

 Is there a way to have the FORM authentication redirect to a
 determined start page on successful login so I can do all my
 initialization there? this would solve my problem.



 --
 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]




AW: How can I get the location of the webapps-directory?

2002-04-22 Thread Eichfelder, Frank

Hi,

thanks for the reply, but I need the webapps-directory to read the 
existent subdirectories and/or war-files in order to make a list of all
deployed web-applications.

(In older versions of the Servlet-API, there was a method called
getServletNames(), which is deprecated now and returns null)

Does anybody have another suggestion?

Thanks,

Frank

 -Ursprüngliche Nachricht-
 Von: Rajesh Nair [mailto:[EMAIL PROTECTED]]
 Gesendet am: Montag, 22. April 2002 06:42
 An: [EMAIL PROTECTED]
 Betreff: Re: How can I get the location of the webapps-directory?
 
 Hi 
 I think u can try getContextPath() which will give u the root 
 of ur web application .To get access to resources inside WAR 
 or other archive files u can use the method 
 getResource(String URIPath);
  If the context is in a different m/c u can use getContext() 
 to get the context first and then use either getResource() or 
 getResourceAsStream() methods 
 
 *** REPLY SEPARATOR  ***
 
 On 4/19/02 at 3:22 PM Eichfelder, Frank wrote:
 
 Hi,
 
 how can I get the location from the webapps-directory on my 
 filesystem?
 
 It's easy, if I use
 
 String path = getServletContext().getRealPath(/);
 
 and then cut off the last part:
 
 int index = path.lastIndexOf(System.getProperty(file.separator),
 path.length()-2 );
 
 path = path.substring(0, index);
 
 But this works only, if you have your webapplication unpacked in the
 file-system or if you have set unpackWars=true.
 
 Now, I have set unpackWars=false, and now I get null for
 getServletContext().getRealPath(/).
 
 Is there any possibility to get the name of the war-File an 
 application is
 stored in or the name of the directory the war-file is stored in?
 
 Thanks, 
 
 Frank
 
 --
 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: domain:8080

2002-04-22 Thread Oktay Altunergil

Your hosting provider (or you .. if you have root access) has to set up a connector 
for your web server that relays jsp/servlet requests for your domain to Tomcat. 
Chances are they will not do it. It can get pretty annoying to set up in a shared 
environment, which is probably why they told you to use port 8080 in the first place.

By the way.. I need to provide a similar service to our customers and I would 
appreciate any links to documentation about Tomcat and Apache in a VirtualHost context 
for shared servers.

Oktay Altunergil

On Mon, 22 Apr 2002 12:15:29 -0400
Rick Fischer [EMAIL PROTECTED] wrote:

 Our web site domain name is hudsonwholesalers.com
 
 The site starts with a servlet : startup.class (in a package called 'hudson')
 
 My Tomcat hosting service tells me the users must use 
 www.hudsonwholesalers.com:8080.  Since this is not reasonable I had to use 
 a redirect in index.html to 
 http:\\www.hudsonwholesalers.com:8080/hudson/servlet/hudson.startup
 
 I would like users to simple start the site with 
 www.hudsonwholesalers.com.  What do we need to do 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: Apache and Tomcat on Linux6.2

2002-04-22 Thread Oktay Altunergil

Steps.

1) Install Apache (w/ DSO support  ( --enable-module=so) (rpm is fine)
2) Install a JDK ( you can download a binary distribution from SUN)
3) Install Tomcat ( On linux, a binary installation works fine)
4) Install a tomcat-apache connector ( mod_jserv, mod_jk, or webapp_module )
5) Edit httpd.conf to activate the connector.

There is tons of documentation for each step. The hard part is to actually configure 
it to match your needs after these.

Oktay Altunergil


On Mon, 22 Apr 2002 19:14:06 +0530
Shiva.Devaguptapu [EMAIL PROTECTED] wrote:

 Hi,
   Can anyone tell me the steps involved in installing the tomcat on
 linux machine and integrating it with apache running on it..
 Thanks,
 Shiva.
 
 --
 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: domain:8080

2002-04-22 Thread Rick Fincher

Edit that in server.xml in the conf directory.

Tomcat defaults to 8080 (or 8443 sor SSL rather than 443) because some
systems make you jump through a lot of hoops to use ports with numbers below
1000 for security reasons.

Rick


 Our web site domain name is hudsonwholesalers.com

 The site starts with a servlet : startup.class (in a package called
'hudson')

 My Tomcat hosting service tells me the users must use
 www.hudsonwholesalers.com:8080.  Since this is not reasonable I had to use
 a redirect in index.html to
 http:\\www.hudsonwholesalers.com:8080/hudson/servlet/hudson.startup

 I would like users to simple start the site with
 www.hudsonwholesalers.com.  What do we need to do this

 Thanks



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




RE: How can I get the location of the webapps-directory?

2002-04-22 Thread Scott Purcell

I think it is servletContext now. Check out the j2ee for servletContext that may be 
what you are looking for.
my o'reilly book shows

public String ServletContext.getServerInfo()


if that don't fly, I can dig deeper, just yell

Scott




-Original Message-
From: Eichfelder, Frank [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 9:15 AM
To: [EMAIL PROTECTED]
Subject: AW: How can I get the location of the webapps-directory?


Hi,

thanks for the reply, but I need the webapps-directory to read the 
existent subdirectories and/or war-files in order to make a list of all
deployed web-applications.

(In older versions of the Servlet-API, there was a method called
getServletNames(), which is deprecated now and returns null)

Does anybody have another suggestion?

Thanks,

Frank

 -Ursprüngliche Nachricht-
 Von: Rajesh Nair [mailto:[EMAIL PROTECTED]]
 Gesendet am: Montag, 22. April 2002 06:42
 An: [EMAIL PROTECTED]
 Betreff: Re: How can I get the location of the webapps-directory?
 
 Hi 
 I think u can try getContextPath() which will give u the root 
 of ur web application .To get access to resources inside WAR 
 or other archive files u can use the method 
 getResource(String URIPath);
  If the context is in a different m/c u can use getContext() 
 to get the context first and then use either getResource() or 
 getResourceAsStream() methods 
 
 *** REPLY SEPARATOR  ***
 
 On 4/19/02 at 3:22 PM Eichfelder, Frank wrote:
 
 Hi,
 
 how can I get the location from the webapps-directory on my 
 filesystem?
 
 It's easy, if I use
 
 String path = getServletContext().getRealPath(/);
 
 and then cut off the last part:
 
 int index = path.lastIndexOf(System.getProperty(file.separator),
 path.length()-2 );
 
 path = path.substring(0, index);
 
 But this works only, if you have your webapplication unpacked in the
 file-system or if you have set unpackWars=true.
 
 Now, I have set unpackWars=false, and now I get null for
 getServletContext().getRealPath(/).
 
 Is there any possibility to get the name of the war-File an 
 application is
 stored in or the name of the directory the war-file is stored in?
 
 Thanks, 
 
 Frank
 
 --
 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: initializing Session state during realm login

2002-04-22 Thread Tim Cronin

this is ok for someone going to the index page for the site
but if your session times out or you point to a page other
than index after the login page you are not set back to the 
index page but the last you were on or the page you requested.

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 11:24 AM
To: Tomcat Users List
Subject: Re: initializing Session state during realm login


Hi Tim,

Your main (or index) page is your init page. After a successful login you
can get the username and role from the request object with the
getRemoteUser() and isUserInRole(roleNameString) methods.

If you need more data than that you can try stuffing data into the session
in your login form.  I haven't tried that so I'm not sure if the session at
the login is the same as your program's session.

Rick


 I'm trying to use a custom Realm and FORM authentication.

 I need to be able to initialize session data after successful login.

 I found information on needing to create a Custom Authenticator.
 http://mikal.org/interests/java/tomcat/archive/view?mesg=56125
 I'm worried about having muck with tomcat internals to do this.

 Is there a way to have the FORM authentication redirect to a
 determined start page on successful login so I can do all my
 initialization there? this would solve my problem.



 --
 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]




How to rename manager?

2002-04-22 Thread Martin Erlandsson

Hi List!

Due to a name clash, I would like to rename the manager application. Can
someone tell me how to do that? I tried just to rename the webapps/manager
dir, but that wasn't enough. :-(

Thanks, 

/Martin 

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




Re: How to rename manager?

2002-04-22 Thread Marieka Prince

You need to also change the Context path and docbase in
$CATALINA_HOME/conf/server.xml

HTH,
Marieka

From: Martin Erlandsson [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: How to rename manager?
Date: Mon, 22 Apr 2002 18:38:27 +0200

Hi List!

Due to a name clash, I would like to rename the manager application. Can
someone tell me how to do that? I tried just to rename the webapps/manager
dir, but that wasn't enough. :-(

Thanks,

/Martin

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



_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Tomcat and Apache 2

2002-04-22 Thread Simon Stewart

Can you be a little more specific? From a quick look at the page, the
obvious flaw is that it mentions AddModule; with Apache 2, you only
need to use LoadModule There's also the warning at the head of the
page about mod_webapp under Windows being flakey.

If you've got any error messages, that would be useful. I've only had
experience with Tomcat and Apache under Linux, but I guess that others
on this list know more about setting up under Win32

On Mon, Apr 22, 2002 at 11:19:49AM -0500, Tim Cronin wrote:
 Under w2k I was unable to use mod_webapp
 
 http://www.tek-tips.com/gfaqs.cfm/lev2/3/lev3/22/spid/65/sfid/1552
 
 
 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 10:13 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and Apache 2
 
 
 Why couldn't you have posted this three weeks earlier :)
 
  -Original Message-
  From: Simon Stewart [mailto:[EMAIL PROTECTED]]
  Sent: 22 April 2002 16:03
  To: Tomcat Users List
  Subject: Re: Tomcat and Apache 2
  
  
  Something had to slip through the net, didn't it ;) Thanks for
  pointing that out; I've updated the HOWTO with your suggested URL.
  
  On Mon, Apr 22, 2002 at 03:44:07PM +0100, Alex Potter wrote:
   Simon
   
   an excellent document, however, the location of the  
  mod_webapp connector
   source is given incorrectly on the web page, I guess the 
  jakarta guys moved
   it?
   
   The correct location is
   
   
  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
 .0.3/src/jakar
  ta-tomcat-connectors-4.0.2-01-src.tar.gz
  
  http://makeashorterlink.com/?G22365CB

Cheers,

Simon

-- 
Listen. Strange women lying in ponds distributing swords is no basis
for a system of government. Supreme executive power derives from a
mandate from the masses, not from some farcical aquatic ceremony.
Raax on royalty

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




RE: Html/jpg from db to client?

2002-04-22 Thread Ozgur Sahoglu


how do you store your image files in your DB? as BLOB objects or as
references to image files at some location?

Ozgur.

 -Original Message-
 From: john-paul delaney [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 3:15 AM
 To: Tomcat Users List
 Subject: Re: Html/jpg from db to client?


 On Mon, 22 Apr 2002, Nikola Milutinovic wrote:

 Thanks Nix... then I'm thinking I need three servlets to handle
 for each page sent to the client... 1. Write the html header, 2.
 Get image from db and send the image, 3.Add in dimensions to img
 tag  add the footer.

 Is this correct?

 regards
 /j-p.

  If you wish to send BOTH html and the image in the same
 invocation of the servlet, then you're mistaken. HTTP/HTML, in
 general, doesn't work that way. You should make a servlet which
 can retrieve a single picture, something like:
 
  /servlets/showImage?src=my_test_pic.gif
 
  Then make your servlet accept src parameter, retrive the
 image from the database. Based on the extension you should set
 the correct MIME type, in this case image/gif and send it. You
 should set Response-contentType to your MIME type and open a
 servlet output stream in the Response and just splash your image into it.


 ---
  JUSTATEST Art Online
   www.justatest.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]




RE: Tomcat and Apache 2

2002-04-22 Thread Tim Cronin

I had it setup (on w2k) and I could get to the index page ok but any page 
with frames would give me the error as described in the link

WebApp: Error 500
(File: pr_warp.c Line: 434) 
(null)

I don't have the logs (but I can regenerate them). 

I ended up using mod_jk instead


-Original Message-
From: Simon Stewart [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 11:51 AM
To: Tomcat Users List
Subject: Re: Tomcat and Apache 2


Can you be a little more specific? From a quick look at the page, the
obvious flaw is that it mentions AddModule; with Apache 2, you only
need to use LoadModule There's also the warning at the head of the
page about mod_webapp under Windows being flakey.

If you've got any error messages, that would be useful. I've only had
experience with Tomcat and Apache under Linux, but I guess that others
on this list know more about setting up under Win32

On Mon, Apr 22, 2002 at 11:19:49AM -0500, Tim Cronin wrote:
 Under w2k I was unable to use mod_webapp
 
 http://www.tek-tips.com/gfaqs.cfm/lev2/3/lev3/22/spid/65/sfid/1552
 
 
 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 10:13 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat and Apache 2
 
 
 Why couldn't you have posted this three weeks earlier :)
 
  -Original Message-
  From: Simon Stewart [mailto:[EMAIL PROTECTED]]
  Sent: 22 April 2002 16:03
  To: Tomcat Users List
  Subject: Re: Tomcat and Apache 2
  
  
  Something had to slip through the net, didn't it ;) Thanks for
  pointing that out; I've updated the HOWTO with your suggested URL.
  
  On Mon, Apr 22, 2002 at 03:44:07PM +0100, Alex Potter wrote:
   Simon
   
   an excellent document, however, the location of the  
  mod_webapp connector
   source is given incorrectly on the web page, I guess the 
  jakarta guys moved
   it?
   
   The correct location is
   
   
  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4
 .0.3/src/jakar
  ta-tomcat-connectors-4.0.2-01-src.tar.gz
  
  http://makeashorterlink.com/?G22365CB

Cheers,

Simon

-- 
Listen. Strange women lying in ponds distributing swords is no basis
for a system of government. Supreme executive power derives from a
mandate from the masses, not from some farcical aquatic ceremony.
Raax on royalty

--
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]




JDBC realm problems

2002-04-22 Thread Januski, Ken

Hi,

I've spent many hours last week and a few more today trying to get JDBC
security realm to work and keep stumbling on this error:
java.sql.SQLException: General error: Access denied for user:
'localhost.localdomain' to database 'tomcatusers';

I'm sure many people have problems getting this to work right off and I've
read a fair amount about various solutions. But what I can't figure out is
why the access denied error doesn't include a user name but only
localhost.localdomain. I've put user and password in server.xm; there is a
tomcatusers table with what i believe are the correct entries. In fact
they're copied/modified from the Goodwill book. I wouldn't be surprised by a
bad username or bad password error but this indicates that the user name
just isn't being passed along. Anyway I assume that I'll find the answer to
the authentication problem if I can find out why the user name doesn't seem
to be passed along to the database call.

Does anyone have any clues?

Thanks,

Ken



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




Re: domain:8080

2002-04-22 Thread Joseph Molnar

Hey Oktay.

My how-to covers how to do both shared context's for multiple virtual hosts
and talks about multiple instances of tomcat running to protect against one
going down...as an ISP the choice is yours and is probably largely memory
drive.

But have a look, I hope it helps:

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/

Joe

- Original Message -
From: Oktay Altunergil [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 9:26 AM
Subject: Re: domain:8080


 Your hosting provider (or you .. if you have root access) has to set up a
connector for your web server that relays jsp/servlet requests for your
domain to Tomcat. Chances are they will not do it. It can get pretty
annoying to set up in a shared environment, which is probably why they told
you to use port 8080 in the first place.

 By the way.. I need to provide a similar service to our customers and I
would appreciate any links to documentation about Tomcat and Apache in a
VirtualHost context for shared servers.

 Oktay Altunergil

 On Mon, 22 Apr 2002 12:15:29 -0400
 Rick Fischer [EMAIL PROTECTED] wrote:

  Our web site domain name is hudsonwholesalers.com
 
  The site starts with a servlet : startup.class (in a package called
'hudson')
 
  My Tomcat hosting service tells me the users must use
  www.hudsonwholesalers.com:8080.  Since this is not reasonable I had to
use
  a redirect in index.html to
  http:\\www.hudsonwholesalers.com:8080/hudson/servlet/hudson.startup
 
  I would like users to simple start the site with
  www.hudsonwholesalers.com.  What do we need to do 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]



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




[nbusers] Tomcat 3.3.1 and JDBC Realms - no luck

2002-04-22 Thread colin . madere


 I'm trying to do the basic setup of this and failing.  I had this working
 under Tomcat 3.2 a year ago or so and don't know what I'm missing this
 time.
 
 OS: WinNT
 Tomcat: 3.3.1 (also tried 3.3a prior to upgrading)
 DB: SQLServer
 
 I'm doing the simple one in server.xml (not the context one) and
 followed all the directions and even used my old 'web.xml' security
 configuration to be sure I was doing it right.  Problem is, I never see
 the JDBCRealm connected like I used to 3.2 when Tomcat starts, NOR
 anything related when the page is accessed, nor am I prompted for
 authentication.  Basically it looks like Tomcat is ignoring all my
 settings with respect to JDBCRealms.
 
 When setting the debug lvl to 10, I do get this upon startup:
 
 2002-04-17 17:02:47 - LogEvents: addInterceptor
 org.apache.tomcat.modules.aaa.JDBCRealm@3ca5f1
 
 but nothing when the page is accessed.
 
 Here are the relevent sections of my server.xml and web.xml, respectively:
 
 (server.xml)
 
 JDBCRealm
   debug=99
   driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver 
   
 connectionURL=jdbc:microsoft:sqlserver://DBServer:1433;user=bob;password=
 thing;database=WebLogin;SelectMethod=cursor
   userTable=users 
   userNameCol=username  
   userCredCol=userpass 
   userRoleTable=userroles 
   roleNameCol=rolename /
 
 (web.xml)
 
   security-constraint
   web-resource-collection
   web-resource-nameResume System/web-resource-name
   url-pattern/ResumeSystem/*/url-pattern
   /web-resource-collection
   auth-constraint
   role-nameemployee/role-name
   /auth-constraint
   /security-constraint
 
   login-config
   auth-methodBASIC/auth-method
   realm-nameBasic Authentication Area/realm-name
   /login-config
 
 (also tried these web.xml entries)
 
 security-constraint
 web-resource-collection
 web-resource-nameResumeSystem/web-resource-name
 url-pattern/ResumeSystem/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
 role-nameemployee/role-name
 /auth-constraint
 user-data-constraint
 transport-guaranteeNONE/transport-guarantee
 /user-data-constraint
 /security-constraint
 
 login-config
 auth-methodBASIC/auth-method
 realm-nameIEM Web/realm-name
 /login-config
 
 security-role
 role-nameemployee/role-name
 /security-role
 
 NOTE:
 Servlets work, JDBC connection works
 
 Searched the archives but nothing helped.
 
 Colin Madere
 
 P.S. I apologize for any formatting madness, Outlook hid my Plain Text
 option and company policy dictates email client :(
 
 

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




Re: domain:8080

2002-04-22 Thread Oktay Altunergil

Joe,

Looks like a scenario that covers a lot of combinations. Thanks a lot. This might just 
be what I'm looking for.

Oktay

On Mon, 22 Apr 2002 10:05:45 -0700
Joseph Molnar [EMAIL PROTECTED] wrote:

 http://www.codesta.com/knowledge/technical/tomcat_warp_apache/

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




sorry about incorrect prefix

2002-04-22 Thread colin . madere


My last message was intended for this list, just put the prefix for the
wrong list in the subject.

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




Re: DBCP Database Connection pooling in TC4

2002-04-22 Thread Scott Jones

Hi Chad,

Didn't get your emails until this morning -- are you experiencing the
same problems that I was talking about?  Basically, it seems like a new
connection pool is getting set up after every JNDI lookup (which I'd
basically like to do every time I run a query).   If I hold on to the
same datasource, I can see that it's obvious that connection pooling is
working...

I've just been doing something like the following the code below to test
it out.  However, the thing that I notice is that rerunning this code
doesn't hold on to the original pool -- in the following code segment
the first and second connections are always  50ms to get and the last
one (which comes from the pool) is always around 0-1ms.  It seems to me
that the DataSource should get cached or held on to in some way --
Otherwise, it seems like it's defeating the purpose of connection
pooling!!!

How are things working for you?

Thanks.

-Scott



DataSource ds = (DataSource) envCtx.lookup(jdbc/maindb);
if (ds != null) {
System.out.println(Found the datasource!!!);
long startTime = System.currentTimeMillis(); 
conn = ds.getConnection();
System.out.println(opened in  + (System.currentTimeMillis() - startTime) +  
ms);
startTime = System.currentTimeMillis(); 
conn2 = ds.getConnection();
System.out.println(opened in  + (System.currentTimeMillis() - startTime) +  
ms);
conn.close();
startTime = System.currentTimeMillis(); 
// get another connection, should be faster now...
Connection conn3 = ds.getConnection();
System.out.println(opened in  + (System.currentTimeMillis() - startTime) +  
ms);
conn3.close();
conn2.close();
} else {
System.out.println(Didn't find it...);
}



On Sat, 2002-04-20 at 08:46, Chad Johnson wrote:
 Hey,
   Well I was able to get this setup rolling this morning.  Thanks in advance  for 
anywork you might have put into my question.
 
 -Chad Johnson  
-- 
Scott Jones
On-Site Manager, Inc.
[EMAIL PROTECTED]
8-ONSITEMGR (866-748-3647)

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




FW: 404 Errors and no log file

2002-04-22 Thread Eric McDonald

Hi:

Hopefully a little help here.  Tried going to Tomcat 4.0.3 and still seeing
same errors (404).

Nothing in the access log.  I tried all of the base root areas defined in
server.xml as docBase but the server can't seem to find any of the files.

Access Log has a zero length.

Eric

-Original Message-
From: Eric McDonald [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:46 PM
To: [EMAIL PROTECTED]
Subject: 404 Errors and no log file


Hi everyone:

Trying to get Tomcat 3.3.1 going on Solaris 8 with JDK 1.4.0.

The server seems to start up okay, but when I access http://server:8080 I
get a 404 from the server.  I don't have a tomcat.log in logs/  And nothing
on stderr.  I checked and it looks like I have docBase for a few
directories--tried those too appended to the URL and still getting 404.

Server is running as root just for now until I get things going and tested.

How do I enable logging to track this down?

Eric McDonald
Systems Admin, RAIN


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




Index page not found.

2002-04-22 Thread Thomas Pennington

I recently upgraded to tomcat 4.0.1.  I am using
apache 1.3.14 and previously had no problems
integrating with tomcat.  The problem I am having is
when I use only the directory name and try to hit my
website I get an error cant find server.  But if I
include the index.html or index.jsp it works fine.  Or
if there is no index page in the directory I get the
directory list.

What seems to happen when I use just the directory
name is I get redirected back to the web server with
the port of the server tacked on. i.e.

I go to the following url
http://www.lookylookyhere.com/jsp/index.html
everything is fine.
I go to
http://www.lookylookyhere.com/jsp/
and I get redirected to:
http://www.lookylookyhere.com:83/jsp/index.html

2 things to note apache is running on port 83 and
tomcat on 8083.  Because on my firewall NAT you will
not find a web server on 83.

Does anyone have any idea why this is redirect is
happening?  I'm I missing some thing in the http.conf
setup or in the server.xml to cause this.  Any help is
appreciated.

Excerpt from http.conf

VirtualHost 111.111.111.111:83
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /x/tomcat-8083/webapps
ServerName www.lookylookyhere.com
ErrorLog logs/lookylookyhere.com-error_log
CustomLog logs/lookylookyhere.com-access_log
common
WebAppConnection warpConnection warp
localhost:8038
WebAppDeploy examples warpConnection /
/VirtualHost

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




AW: How to rename manager?

2002-04-22 Thread Ralph Einfeldt

Hi user!

(Sorry couldn't resist ...)

You also need to change the context in server.xml

Context path=/manager 

 -Ursprüngliche Nachricht-
 Von: Martin Erlandsson [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 22. April 2002 18:38
 An: 'Tomcat Users List'
 Betreff: How to rename manager?
 
 
 Hi List!
 
 Due to a name clash, I would like to rename the manager 
 application. Can
 someone tell me how to do that? I tried just to rename the 
 webapps/manager
 dir, but that wasn't enough. :-(
 

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




Tomcat as an NT Service.

2002-04-22 Thread ari

Hi. I'm trying to install tomcat on my Windows 2000 Server as an NT service 
using the jk_nt_service.exe wrapper. I am consistantly getting the same error 
everytime I try and start the Server (I'm using the services control panel)

Do you know of any problems with using the wrapper on a windows 2000 server 
machine?? THe error I'm getting is...

Could not start the Jakarta Service on local computer
Error 1607: The process terminated unexpectedly.

Thanks for your time/help.

ari

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




problems poolman with tomcat

2002-04-22 Thread rsalinasg

hi to all, I use poolman 2.0, tomcat 3.3.1, and windows
2000 professional, when I runnig the samples
poolmansample in standalone, the results is sucessful,
but when I runnig the poolman.jsp and clicked the
PoolMan JSP Database Client , I received this error:

EmbededTomcat: Startup time 351
2002-04-22 10:57:26 - SessionIdGenerator: Created
random class java.security.SecureRandom

null
java.lang.NullPointerException
java.lang.NullPointerException
at
com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfig
uration.java:118)
at
com.codestudio.management.PoolManConfiguration.loadConfiguration(Pool
ManConfiguration.java:75)
at
com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.ja
va:61)
at
com.codestudio.util.SQLManager.assertLoaded(SQLManager.java:109)
at
com.codestudio.util.SQLManager.getAllPoolnames(SQLManager.java:147)
at
com.codestudio.util.SQLUtil.getAllPoolnames(SQLUtil.java:194)
at
com.codestudio.util.PoolManBean.getAllPoolnames(PoolManBean.java:90)
at PoolMan_3._jspService(PoolMan_3.java:106)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java)


Has anybody using PoolMan received this error? If so,
what is the solution?

Thanks in advance.



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




Re: domain:8080

2002-04-22 Thread Oktay Altunergil

Your hosting provider (or you .. if you have root access) has to set up a connector 
for your web server that relays jsp/servlet requests for your domain to Tomcat. 
Chances are they will not do it. It can get pretty annoying to set up in a shared 
environment, which is probably why they told you to use port 8080 in the first place.

By the way.. I need to provide a similar service to our customers and I would 
appreciate any links to documentation about Tomcat and Apache in a VirtualHost context 
for shared servers.

Oktay Altunergil

On Mon, 22 Apr 2002 12:15:29 -0400
Rick Fischer [EMAIL PROTECTED] wrote:

 Our web site domain name is hudsonwholesalers.com
 
 The site starts with a servlet : startup.class (in a package called 'hudson')
 
 My Tomcat hosting service tells me the users must use 
 www.hudsonwholesalers.com:8080.  Since this is not reasonable I had to use 
 a redirect in index.html to 
 http:\\www.hudsonwholesalers.com:8080/hudson/servlet/hudson.startup
 
 I would like users to simple start the site with 
 www.hudsonwholesalers.com.  What do we need to do 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: Tomcat as an NT Service.

2002-04-22 Thread Jacob Kjome

Hello ari,

Which version of Tomcat?  If 4.0, then you don't use
jk_nt_service.exe.  You use Tomcat.exe that is in the $TOMCAT_HOME/bin
directory.  Just use the following to install/uninstall the service
(copy/paste the lines below to the command line...assuming you've set
up the environment variables referenced):

Install Catalina Service:

%CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar 
-Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start 
org.apache.catalina.startup.Bootstrap -params start -stop 
org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log

Uninstall Catalina Service:

%CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina


Jake

Monday, April 22, 2002, 12:14:54 PM, you wrote:

abc Hi. I'm trying to install tomcat on my Windows 2000 Server as an NT service 
abc using the jk_nt_service.exe wrapper. I am consistantly getting the same error 
abc everytime I try and start the Server (I'm using the services control panel)

abc Do you know of any problems with using the wrapper on a windows 2000 server 
abc machine?? THe error I'm getting is...

abc Could not start the Jakarta Service on local computer
abc Error 1607: The process terminated unexpectedly.

abc Thanks for your time/help.

abc ari

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: DBCP Database Connection pooling in TC4

2002-04-22 Thread Ozgur Sahoglu


Hi,

What is the difference between javax.sql.DataSource and
javax.sql.ConnectionPoolDataSource interfaces? In API docs it is written
that connection pool implementation of the DataSource works with a
middle-tier connection pooling manager. I am using mm.mysql, and I am
wondering if connection pool is implemented with this MySQL driver. As far
as I see from previous postings everyone seems to use a third party
connection pooling manager such as tyrex, poolman, protomatter, etc.

Similarly, what is the difference between a java.sql.Connection and
javax.sql.PooledConnection interfaces in this context?

TIA,


Ozgur.


 -Original Message-
 From: Scott Jones [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 10:09 AM
 To: Tomcat Users List
 Cc: Chad Johnson
 Subject: Re: DBCP Database Connection pooling in TC4


 Hi Chad,

 Didn't get your emails until this morning -- are you experiencing the
 same problems that I was talking about?  Basically, it seems like a new
 connection pool is getting set up after every JNDI lookup (which I'd
 basically like to do every time I run a query).   If I hold on to the
 same datasource, I can see that it's obvious that connection pooling is
 working...

 I've just been doing something like the following the code below to test
 it out.  However, the thing that I notice is that rerunning this code
 doesn't hold on to the original pool -- in the following code segment
 the first and second connections are always  50ms to get and the last
 one (which comes from the pool) is always around 0-1ms.  It seems to me
 that the DataSource should get cached or held on to in some way --
 Otherwise, it seems like it's defeating the purpose of connection
 pooling!!!

 How are things working for you?

 Thanks.

 -Scott



 DataSource ds = (DataSource) envCtx.lookup(jdbc/maindb);
 if (ds != null) {
   System.out.println(Found the datasource!!!);
   long startTime = System.currentTimeMillis();
   conn = ds.getConnection();
   System.out.println(opened in  +
 (System.currentTimeMillis() - startTime) +  ms);
   startTime = System.currentTimeMillis();
   conn2 = ds.getConnection();
   System.out.println(opened in  +
 (System.currentTimeMillis() - startTime) +  ms);
   conn.close();
   startTime = System.currentTimeMillis();
   // get another connection, should be faster now...
   Connection conn3 = ds.getConnection();
   System.out.println(opened in  +
 (System.currentTimeMillis() - startTime) +  ms);
   conn3.close();
   conn2.close();
 } else {
   System.out.println(Didn't find it...);
 }



 On Sat, 2002-04-20 at 08:46, Chad Johnson wrote:
  Hey,
Well I was able to get this setup rolling this morning.
 Thanks in advance  for anywork you might have put into my question.
 
  -Chad Johnson
 --
 Scott Jones
 On-Site Manager, Inc.
 [EMAIL PROTECTED]
 8-ONSITEMGR (866-748-3647)

 --
 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: JDBC realm problems

2002-04-22 Thread Januski, Ken

Half answering my own question I found that if I changed permissions to the
relevant user I was able to get a bit further. At least the logon is now
seen but it fails with this message:
Invalid authorization specification: Access denied for user:
'ken;[EMAIL PROTECTED]' (Using password: NO)
I have the feeling that this may also me an mySQL problem not a Tomcat one.
Still if anyone has any clues to the solution I'd appreciate hearing them.

Thanks,

Ken



-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 12:58 PM
To: Tomcat Users List
Subject: JDBC realm problems


Hi,

I've spent many hours last week and a few more today trying to get JDBC
security realm to work and keep stumbling on this error:
java.sql.SQLException: General error: Access denied for user:
'localhost.localdomain' to database 'tomcatusers';

I'm sure many people have problems getting this to work right off and I've
read a fair amount about various solutions. But what I can't figure out is
why the access denied error doesn't include a user name but only
localhost.localdomain. I've put user and password in server.xm; there is a
tomcatusers table with what i believe are the correct entries. In fact
they're copied/modified from the Goodwill book. I wouldn't be surprised by a
bad username or bad password error but this indicates that the user name
just isn't being passed along. Anyway I assume that I'll find the answer to
the authentication problem if I can find out why the user name doesn't seem
to be passed along to the database call.

Does anyone have any clues?

Thanks,

Ken



--
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: JDBC realm problems

2002-04-22 Thread Rick Fincher

Hi Ken,

Have you tried setting the debug level to 99 in the realm tag in server.xml?
You may have already done this, but it will add a lot more info to the log
about the process of getting into the realm.

Rick

 Hi,

 I've spent many hours last week and a few more today trying to get JDBC
 security realm to work and keep stumbling on this error:
 java.sql.SQLException: General error: Access denied for user:
 'localhost.localdomain' to database 'tomcatusers';

 I'm sure many people have problems getting this to work right off and I've
 read a fair amount about various solutions. But what I can't figure out is
 why the access denied error doesn't include a user name but only
 localhost.localdomain. I've put user and password in server.xm; there is a
 tomcatusers table with what i believe are the correct entries. In fact
 they're copied/modified from the Goodwill book. I wouldn't be surprised by
a
 bad username or bad password error but this indicates that the user name
 just isn't being passed along. Anyway I assume that I'll find the answer
to
 the authentication problem if I can find out why the user name doesn't
seem
 to be passed along to the database call.

 Does anyone have any clues?

 Thanks,

 Ken



 --
 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: DBCP Database Connection pooling in TC4

2002-04-22 Thread John McNally

Hello Scott,

There is another connection pool located in commons-sandbox/jdbc2pool
that behaves as you expect, multiple lookups of the same pool will NOT
reset the pool.  Jdbc2pool is written to use a ConnectionPoolDataSource
as the backend providing the connections.  It does have an adapter
package that can be used with the older Driver style of providing
physical connections.  This adapter adds the benefit of
PreparedStatement pooling as well.  Jdbcpool has not been put to the
test in a production system yet, but it does pass its tests and is based
on the same commons-pool code used in BasicDataSource.

john mcnally

Scott Jones wrote:
 
 Hi Chad,
 
 Didn't get your emails until this morning -- are you experiencing the
 same problems that I was talking about?  Basically, it seems like a new
 connection pool is getting set up after every JNDI lookup (which I'd
 basically like to do every time I run a query).   If I hold on to the
 same datasource, I can see that it's obvious that connection pooling is
 working...
 
 I've just been doing something like the following the code below to test
 it out.  However, the thing that I notice is that rerunning this code
 doesn't hold on to the original pool -- in the following code segment
 the first and second connections are always  50ms to get and the last
 one (which comes from the pool) is always around 0-1ms.  It seems to me
 that the DataSource should get cached or held on to in some way --
 Otherwise, it seems like it's defeating the purpose of connection
 pooling!!!

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




Re: 404 Errors and no log file

2002-04-22 Thread Rick Fincher

Hi Eric,

If your log is empty you may not have CATALINA_HOME set up correctly.  If
you used a Tomcat 3.x and are using some old scripts they may have
TOMCAT_HOME set up in them.  They will need to be changed to CATALINA_HOME.

You should see some messages in the logs.  Are the permissions of the log
folders set up so that the owner of the Tomcat process can get at them.

Rick

 Hi:

 Hopefully a little help here.  Tried going to Tomcat 4.0.3 and still
seeing
 same errors (404).

 Nothing in the access log.  I tried all of the base root areas defined in
 server.xml as docBase but the server can't seem to find any of the
files.

 Access Log has a zero length.

 Eric

 -Original Message-
 From: Eric McDonald [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 19, 2002 2:46 PM
 To: [EMAIL PROTECTED]
 Subject: 404 Errors and no log file


 Hi everyone:

 Trying to get Tomcat 3.3.1 going on Solaris 8 with JDK 1.4.0.

 The server seems to start up okay, but when I access http://server:8080
I
 get a 404 from the server.  I don't have a tomcat.log in logs/  And
nothing
 on stderr.  I checked and it looks like I have docBase for a few
 directories--tried those too appended to the URL and still getting 404.

 Server is running as root just for now until I get things going and
tested.

 How do I enable logging to track this down?

 Eric McDonald
 Systems Admin, RAIN


 --
 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: JDBC realm problems

2002-04-22 Thread Tim Cronin

have you tested accessing mysql from JDBC in isolation (write a simple test
class that
creates a connection and does a simple select)?

there might be a problem on you permissions setup under mysql.
http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Adm
inistration.html#Privilege_system

I had to remove the default user name= from the table to get access.

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 1:11 PM
To: Tomcat Users List
Subject: RE: JDBC realm problems


Half answering my own question I found that if I changed permissions to the
relevant user I was able to get a bit further. At least the logon is now
seen but it fails with this message:
Invalid authorization specification: Access denied for user:
'ken;[EMAIL PROTECTED]' (Using password: NO)
I have the feeling that this may also me an mySQL problem not a Tomcat one.
Still if anyone has any clues to the solution I'd appreciate hearing them.

Thanks,

Ken



-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 12:58 PM
To: Tomcat Users List
Subject: JDBC realm problems


Hi,

I've spent many hours last week and a few more today trying to get JDBC
security realm to work and keep stumbling on this error:
java.sql.SQLException: General error: Access denied for user:
'localhost.localdomain' to database 'tomcatusers';

I'm sure many people have problems getting this to work right off and I've
read a fair amount about various solutions. But what I can't figure out is
why the access denied error doesn't include a user name but only
localhost.localdomain. I've put user and password in server.xm; there is a
tomcatusers table with what i believe are the correct entries. In fact
they're copied/modified from the Goodwill book. I wouldn't be surprised by a
bad username or bad password error but this indicates that the user name
just isn't being passed along. Anyway I assume that I'll find the answer to
the authentication problem if I can find out why the user name doesn't seem
to be passed along to the database call.

Does anyone have any clues?

Thanks,

Ken



--
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: JDBC realm problems

2002-04-22 Thread Januski, Ken

Yes I have. After some more investigation I think the problem is this: the
entry in server.xml is like this user=ken;password=ken. But mySQL wants a
 and xml parser demands a ;. With a ; mySQL thinks no password was
sent and so denies me with 'password: no'. With  debug=99 comes into play
and tells me The reference to entity 'password' must end with the ';'
delimiter. But as soon as I do that then mySQL no longer sees the
password!!

I have read about the need to change the ; to  while investigating on
google so I know some people have found that necessary. My problem is that I
then get the parser error.

So it seems to me I'm sitting on the horns of a dilemma from which I hope
someone can remove me.

Thanks!

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:14 PM
To: Tomcat Users List
Subject: Re: JDBC realm problems


Hi Ken,

Have you tried setting the debug level to 99 in the realm tag in server.xml?
You may have already done this, but it will add a lot more info to the log
about the process of getting into the realm.

Rick

 Hi,

 I've spent many hours last week and a few more today trying to get JDBC
 security realm to work and keep stumbling on this error:
 java.sql.SQLException: General error: Access denied for user:
 'localhost.localdomain' to database 'tomcatusers';

 I'm sure many people have problems getting this to work right off and I've
 read a fair amount about various solutions. But what I can't figure out is
 why the access denied error doesn't include a user name but only
 localhost.localdomain. I've put user and password in server.xm; there is a
 tomcatusers table with what i believe are the correct entries. In fact
 they're copied/modified from the Goodwill book. I wouldn't be surprised by
a
 bad username or bad password error but this indicates that the user name
 just isn't being passed along. Anyway I assume that I'll find the answer
to
 the authentication problem if I can find out why the user name doesn't
seem
 to be passed along to the database call.

 Does anyone have any clues?

 Thanks,

 Ken



 --
 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: DBCP Database Connection pooling in TC4

2002-04-22 Thread Scott Jones

Hi John,

Ah, very nice.  That's exactly what I was looking for...  I don't
actually understand why you'd ever want the pool to get reset.  

Before, I actually had JDBC Connection Pooling set up using the
bitmechanic jdbcpool (http://www.bitmechanic.com/projects/jdbcpool/). 
However, I want to use the DataSource interface (or I guess the
ConnectionPoolDataSource interface) to get at my databases so that I can
set the loginTimout and a few other things that this new stuff
provides...  

Thanks for the pointer, I've just checked it out of CVS and will give it
a try.

Cheers,

Scott

On Mon, 2002-04-22 at 11:21, John McNally wrote:
 Hello Scott,
 
 There is another connection pool located in commons-sandbox/jdbc2pool
 that behaves as you expect, multiple lookups of the same pool will NOT
 reset the pool.  Jdbc2pool is written to use a ConnectionPoolDataSource
 as the backend providing the connections.  It does have an adapter
 package that can be used with the older Driver style of providing
 physical connections.  This adapter adds the benefit of
 PreparedStatement pooling as well.  Jdbcpool has not been put to the
 test in a production system yet, but it does pass its tests and is based
 on the same commons-pool code used in BasicDataSource.
 
 john mcnally
 
 Scott Jones wrote:
  
  Hi Chad,
  
  Didn't get your emails until this morning -- are you experiencing the
  same problems that I was talking about?  Basically, it seems like a new
  connection pool is getting set up after every JNDI lookup (which I'd
  basically like to do every time I run a query).   If I hold on to the
  same datasource, I can see that it's obvious that connection pooling is
  working...
  
  I've just been doing something like the following the code below to test
  it out.  However, the thing that I notice is that rerunning this code
  doesn't hold on to the original pool -- in the following code segment
  the first and second connections are always  50ms to get and the last
  one (which comes from the pool) is always around 0-1ms.  It seems to me
  that the DataSource should get cached or held on to in some way --
  Otherwise, it seems like it's defeating the purpose of connection
  pooling!!!
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
-- 
Scott Jones
On-Site Manager, Inc.
[EMAIL PROTECTED]
8-ONSITEMGR (866-748-3647)

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




Re[2]: JDBC realm problems

2002-04-22 Thread Jacob Kjome

Hello Ken,

Well, then write it as the entity amp; which is the xml equivalent of
 as long as the DTD defines that entity.

Jake

Monday, April 22, 2002, 1:22:56 PM, you wrote:

JK Yes I have. After some more investigation I think the problem is this: the
JK entry in server.xml is like this user=ken;password=ken. But mySQL wants a
JK  and xml parser demands a ;. With a ; mySQL thinks no password was
JK sent and so denies me with 'password: no'. With  debug=99 comes into play
JK and tells me The reference to entity 'password' must end with the ';'
JK delimiter. But as soon as I do that then mySQL no longer sees the
JK password!!

JK I have read about the need to change the ; to  while investigating on
JK google so I know some people have found that necessary. My problem is that I
JK then get the parser error.

JK So it seems to me I'm sitting on the horns of a dilemma from which I hope
JK someone can remove me.

JK Thanks!

JK -Original Message-
JK From: Rick Fincher [mailto:[EMAIL PROTECTED]]
JK Sent: Monday, April 22, 2002 2:14 PM
JK To: Tomcat Users List
JK Subject: Re: JDBC realm problems


JK Hi Ken,

JK Have you tried setting the debug level to 99 in the realm tag in server.xml?
JK You may have already done this, but it will add a lot more info to the log
JK about the process of getting into the realm.

JK Rick

 Hi,

 I've spent many hours last week and a few more today trying to get JDBC
 security realm to work and keep stumbling on this error:
 java.sql.SQLException: General error: Access denied for user:
 'localhost.localdomain' to database 'tomcatusers';

 I'm sure many people have problems getting this to work right off and I've
 read a fair amount about various solutions. But what I can't figure out is
 why the access denied error doesn't include a user name but only
 localhost.localdomain. I've put user and password in server.xm; there is a
 tomcatusers table with what i believe are the correct entries. In fact
 they're copied/modified from the Goodwill book. I wouldn't be surprised by
JK a
 bad username or bad password error but this indicates that the user name
 just isn't being passed along. Anyway I assume that I'll find the answer
JK to
 the authentication problem if I can find out why the user name doesn't
JK seem
 to be passed along to the database call.

 Does anyone have any clues?

 Thanks,

 Ken



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




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

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: JDBC realm problems

2002-04-22 Thread Tim Cronin

what if you remove the username and password from the URL 
and set them via the connectionName, connectionPassword attribs?

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 1:23 PM
To: Tomcat Users List
Subject: RE: JDBC realm problems


Yes I have. After some more investigation I think the problem is this: the
entry in server.xml is like this user=ken;password=ken. But mySQL wants a
 and xml parser demands a ;. With a ; mySQL thinks no password was
sent and so denies me with 'password: no'. With  debug=99 comes into play
and tells me The reference to entity 'password' must end with the ';'
delimiter. But as soon as I do that then mySQL no longer sees the
password!!

I have read about the need to change the ; to  while investigating on
google so I know some people have found that necessary. My problem is that I
then get the parser error.

So it seems to me I'm sitting on the horns of a dilemma from which I hope
someone can remove me.

Thanks!

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:14 PM
To: Tomcat Users List
Subject: Re: JDBC realm problems


Hi Ken,

Have you tried setting the debug level to 99 in the realm tag in server.xml?
You may have already done this, but it will add a lot more info to the log
about the process of getting into the realm.

Rick

 Hi,

 I've spent many hours last week and a few more today trying to get JDBC
 security realm to work and keep stumbling on this error:
 java.sql.SQLException: General error: Access denied for user:
 'localhost.localdomain' to database 'tomcatusers';

 I'm sure many people have problems getting this to work right off and I've
 read a fair amount about various solutions. But what I can't figure out is
 why the access denied error doesn't include a user name but only
 localhost.localdomain. I've put user and password in server.xm; there is a
 tomcatusers table with what i believe are the correct entries. In fact
 they're copied/modified from the Goodwill book. I wouldn't be surprised by
a
 bad username or bad password error but this indicates that the user name
 just isn't being passed along. Anyway I assume that I'll find the answer
to
 the authentication problem if I can find out why the user name doesn't
seem
 to be passed along to the database call.

 Does anyone have any clues?

 Thanks,

 Ken



 --
 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: Tomcat and Apache 2

2002-04-22 Thread Michael Delamere

Simon,

first of all, thank you very much for taking up your time in producing such
an excellent how-to!!

Secondly, I´m having problems.  Although your information is very clear I
appear to have problems during the last compile process (or maybe
earlier??).

After entering the command:
--
${APACHE_HOME}/build/libtool --silent --mode=link \
gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
-module -avoid-version -I../include  -L../lib -dlopen
../lib/libwebapp.la  mod_webapp.lo
cp mod_webapp.so ${APACHE_HOME}/modules/
--

I get the following error and mod_webapp.so does not get created:
-
libtool: link: warning: `AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen
support.
gcc: cp: No such file or directory
gcc: mod_webapp.so: No such file or directory
--

I know you said that the error message should be ignored but for some
reason, it´s not creating the mod_webapp.so file.

Thanks for your help,

bye Michael Delamere



 - Original Message -
 From: Alex Potter [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, April 22, 2002 4:44 PM
 Subject: Re: Tomcat and Apache 2


  Simon
 
  an excellent document, however, the location of the  mod_webapp
connector
  source is given incorrectly on the web page, I guess the jakarta guys
 moved
  it?
 
  The correct location is
 
 

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jakar
  ta-tomcat-connectors-4.0.2-01-src.tar.gz
 
  http://makeashorterlink.com/?G22365CB
 
  HTH
 
  Alex
 
 
  - Original Message -
  From: Simon Stewart [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, April 22, 2002 3:23 PM
  Subject: Tomcat and Apache 2
 
 
   There have been quite a few posts about how to integrate Apache 2 and
   Tomcat 4, and Jeff Bonevich has posted a HOWTO here, which you may
   have already read.
  
   I've taken the HOWTO, edited it a bit and added some extra notes on
   using Apache, Tomcat and JBoss 3 and put it on a website, because I
   know that this is a hugely frustrating thing to have to work through
   and having something like this might make life that little bit easier.
  
   If you're interested:
  
   http://www.pubbitch.org/jboss.html
  
   Let me know if you spot any typos ;)
  
   Regards,
  
   Simon
  
   --
   I've gone through over-stressed to physical exhaustion... what's
next?
   Tuesday --- Simon Burr  Kyle Hearn
  
   --
   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: Re[2]: JDBC realm problems

2002-04-22 Thread Januski, Ken

Jake,

HEY! That did it. Thanks very much for the suggestion.

Ken

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:42 PM
To: Tomcat Users List
Subject: Re[2]: JDBC realm problems


Hello Ken,

Well, then write it as the entity amp; which is the xml equivalent of
 as long as the DTD defines that entity.

Jake

Monday, April 22, 2002, 1:22:56 PM, you wrote:

JK Yes I have. After some more investigation I think the problem is this:
the
JK entry in server.xml is like this user=ken;password=ken. But mySQL wants
a
JK  and xml parser demands a ;. With a ; mySQL thinks no password
was
JK sent and so denies me with 'password: no'. With  debug=99 comes into
play
JK and tells me The reference to entity 'password' must end with the ';'
JK delimiter. But as soon as I do that then mySQL no longer sees the
JK password!!

JK I have read about the need to change the ; to  while investigating
on
JK google so I know some people have found that necessary. My problem is
that I
JK then get the parser error.

JK So it seems to me I'm sitting on the horns of a dilemma from which I
hope
JK someone can remove me.

JK Thanks!

JK -Original Message-
JK From: Rick Fincher [mailto:[EMAIL PROTECTED]]
JK Sent: Monday, April 22, 2002 2:14 PM
JK To: Tomcat Users List
JK Subject: Re: JDBC realm problems


JK Hi Ken,

JK Have you tried setting the debug level to 99 in the realm tag in
server.xml?
JK You may have already done this, but it will add a lot more info to the
log
JK about the process of getting into the realm.

JK Rick

 Hi,

 I've spent many hours last week and a few more today trying to get JDBC
 security realm to work and keep stumbling on this error:
 java.sql.SQLException: General error: Access denied for user:
 'localhost.localdomain' to database 'tomcatusers';

 I'm sure many people have problems getting this to work right off and
I've
 read a fair amount about various solutions. But what I can't figure out
is
 why the access denied error doesn't include a user name but only
 localhost.localdomain. I've put user and password in server.xm; there is
a
 tomcatusers table with what i believe are the correct entries. In fact
 they're copied/modified from the Goodwill book. I wouldn't be surprised
by
JK a
 bad username or bad password error but this indicates that the user name
 just isn't being passed along. Anyway I assume that I'll find the answer
JK to
 the authentication problem if I can find out why the user name doesn't
JK seem
 to be passed along to the database call.

 Does anyone have any clues?

 Thanks,

 Ken



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




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

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



-- 
Best regards,
 Jacobmailto:[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: JDBC realm problems

2002-04-22 Thread Januski, Ken

Thanks Tim. Jake's suggestion of changing the  to amp; did the trick I'm
happy to say. 

-Original Message-
From: Tim Cronin [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:40 PM
To: 'Tomcat Users List'
Subject: RE: JDBC realm problems


what if you remove the username and password from the URL 
and set them via the connectionName, connectionPassword attribs?

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 1:23 PM
To: Tomcat Users List
Subject: RE: JDBC realm problems


Yes I have. After some more investigation I think the problem is this: the
entry in server.xml is like this user=ken;password=ken. But mySQL wants a
 and xml parser demands a ;. With a ; mySQL thinks no password was
sent and so denies me with 'password: no'. With  debug=99 comes into play
and tells me The reference to entity 'password' must end with the ';'
delimiter. But as soon as I do that then mySQL no longer sees the
password!!

I have read about the need to change the ; to  while investigating on
google so I know some people have found that necessary. My problem is that I
then get the parser error.

So it seems to me I'm sitting on the horns of a dilemma from which I hope
someone can remove me.

Thanks!

-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:14 PM
To: Tomcat Users List
Subject: Re: JDBC realm problems


Hi Ken,

Have you tried setting the debug level to 99 in the realm tag in server.xml?
You may have already done this, but it will add a lot more info to the log
about the process of getting into the realm.

Rick

 Hi,

 I've spent many hours last week and a few more today trying to get JDBC
 security realm to work and keep stumbling on this error:
 java.sql.SQLException: General error: Access denied for user:
 'localhost.localdomain' to database 'tomcatusers';

 I'm sure many people have problems getting this to work right off and I've
 read a fair amount about various solutions. But what I can't figure out is
 why the access denied error doesn't include a user name but only
 localhost.localdomain. I've put user and password in server.xm; there is a
 tomcatusers table with what i believe are the correct entries. In fact
 they're copied/modified from the Goodwill book. I wouldn't be surprised by
a
 bad username or bad password error but this indicates that the user name
 just isn't being passed along. Anyway I assume that I'll find the answer
to
 the authentication problem if I can find out why the user name doesn't
seem
 to be passed along to the database call.

 Does anyone have any clues?

 Thanks,

 Ken



 --
 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: JDBC realm problems

2002-04-22 Thread Rick Fincher

Hi Ken,

The spec allows the values:

 connectionName=username
 connectionPassword=password

in the realm tag in server.xml.  You might try that instead of putting the
username and password in the connection URL.

Tomcat then builds the string for the URL with the connection parameters in
it.

Rick


 Yes I have. After some more investigation I think the problem is this: the
 entry in server.xml is like this user=ken;password=ken. But mySQL wants a
  and xml parser demands a ;. With a ; mySQL thinks no password was
 sent and so denies me with 'password: no'. With  debug=99 comes into
play
 and tells me The reference to entity 'password' must end with the ';'
 delimiter. But as soon as I do that then mySQL no longer sees the
 password!!

 I have read about the need to change the ; to  while investigating on
 google so I know some people have found that necessary. My problem is that
I
 then get the parser error.

 So it seems to me I'm sitting on the horns of a dilemma from which I hope
 someone can remove me.

 Thanks!



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




Re: DBCP Database Connection pooling in TC4

2002-04-22 Thread John McNally

Ozgur Sahoglu wrote:
 
 Hi,
 
 What is the difference between javax.sql.DataSource and
 javax.sql.ConnectionPoolDataSource interfaces?

A DataSource is meant to be used by an application.  It could be written
by the jdbc driver as a way to provide physical db connections.  It is
also the interface that would be used by an application using a
connection pool to get (most likely) logical connections.

A ConnectionPoolDataSource (CPDS) is generally written by the jdbc
driver author to provide physical connections that are meant to be
pooled.  So a CPDS is never used by an generic application.  A
connection pool would usually use the CPDS internally as the source to
grab new physical connections.  Jdbc2pool expects to be given a jndi
name so that it can lookup the source of physical connections.  It
provides an adapter CPDS that wraps the older Driver style of specifying
the source of physical connections as is implemented by mysql and other
jdbc 1.x jdbc drivers.  

 In API docs it is written
 that connection pool implementation of the DataSource works with a
 middle-tier connection pooling manager. I am using mm.mysql, and I am
 wondering if connection pool is implemented with this MySQL driver. As far
 as I see from previous postings everyone seems to use a third party
 connection pooling manager such as tyrex, poolman, protomatter, etc.
 
 Similarly, what is the difference between a java.sql.Connection and
 javax.sql.PooledConnection interfaces in this context?
 

You would use a Connection object in your application.  A connection
pool should pool PooledConnections which are then used to generate
Connections as an application request them.
BasicDataSource, and DBCP in general, pools Connection objects.  This
was the standard object that was pooled prior to jdbc2 so the difference
between a physical and logical connection was blurred.  It really makes
little difference to an application using the pool.

So in summary.  Unless you are writing a connection pool, you should
ignore the existence of a PooledConnection.  You might need to know the
properties of the CPDS provided by your jdbc vendor in order to deploy
it via jndi, but it would not be used directly by your application.

john mcnally

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




tomcat 3.x virtual hosts

2002-04-22 Thread Phillip Morelock

Hi everybody, 

usual list-newbie disclaimer
I have searched the archives to no avail for this particular answer...i
think my problem may or may not be subtly unique from others' problems.
I have been using tomcat 3.x for a long time but have never encountered this
self-inflicted problem.  If I am wrong and have wasted everyone's bandwidth,
I apologize in advance.
/usual list-newbie disclaimer

I am using virtual hosting on Tomcat 3.x standalone but I can't seem to make
my scenario work:

www.xxx.com/memphis
and
www.xxx.net/memphis

Basically the only difference between the two (they're literally the same
webapp) is that in the web.xml file, I provide a different database name for
my load-on-startup servlet to create a pool of connections to (not IP
address -- it's the same database server, just a different DB name).  My
server.xml looks like this:

Host name=www.XXX.com
Context path=/memphis
docBase=webapps/memphis /
Context path=/
docBase=webapps/ROOT /
 /Host
Host name=www.XXX.net
Context path=/memphis
docBase=netwebapps/memphis /
Context path=/
docBase=netwebapps/ROOT /
 /Host

So basically, I have two different folders -- the default webapps folder
and then one I created called netwebapps.  This works, tomcat doesn't
complain -- in fact, it even connects to the database twice during startup
(I have debug messages), so I *know* it runs my load-on-startup servlet
twice.  So I know it knows I want to run two webapps.

But here's the funny thing, when I go to www.xxx.net/memphis in my browser,
it returns a 404.  .com still works like it always did, even before i set up
virtual hosting.  What's up?  Is it because maybe it's impossible to have
two webapps of the same context name on different virtual hosts from the
same container?

Cheers and TIA
fillup


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




Re: JNDI realm against win2000 DC (REPOST SORRY)

2002-04-22 Thread Jonathan Eric Miller

As far as I know, you won't be able to do this until Tomcat 4.1 is released.
In the current version of Tomcat, it binds as an administrator and then
queries for the user's password and compares it to that which was provided
by the user. This comparison takes place on the client-side. i.e. in Tomcat
itself. There is another way to do this where it binds as the user himself.
This is really what you need. Someone provided a patch that does this and
from what I've heard it will most likely be introduced when Tomcat 4.1 comes
out. I don't think the patch included SSL support though. Hopefully, they
will put that in there too. Otherwise, that would be pretty problematic as
well.

Jon

- Original Message -
From: Soefara Redzuan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 12, 2002 7:57 AM
Subject: Re: JNDI realm against win2000 DC (REPOST SORRY)


 No sooner have I hit send then I find the solution for you !!

 http://forum.java.sun.com/thread.jsp?forum=51thread=194669

 Please do let us know if it works.

 Soefara.

 From: Soefara Redzuan [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: JNDI realm against win2000 DC (REPOST SORRY)
 Date: Fri, 12 Apr 2002 20:55:31 +0800
 
 Do you mean authentication against a Windows 2000 Active Directory ? The
 latter is based upon LDAP I believe and therefore should be accessible.
At
 least that's what the JNDI FAQ implies
 http://java.sun.com/products/jndi/faq.html
 
 However, for authentication purposes, you need to communicate with the
 server via SSL. I've never managed to get this to work successfully but
 there are quite a few references in the forums. For example
 http://forum.java.sun.com/thread.jsp?forum=51thread=91182
 
 Please do let us know if you get it working. I'm sure there are many
people
 who would love to use it too.
 
 Soefara.
 
 
 
 
 
 From: Jacob Lund [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: JNDI realm against win2000 DC (REPOST SORRY)
 Date: Fri, 12 Apr 2002 14:39:07 +0200
 
 Sorry about this repost, but it is really bugging me!
 
 
 Does anyone have a TC 4.0.x configured with a JNDI realm against a
 windows 2000 domain controller? Or maybe just know how to set this up!
 
 I have been looking at the JNDI how-to and I cannot get it working.
 
 Thanks,
 Jacob
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.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]




using more memory, different classpath

2002-04-22 Thread jason wood


(1) i received an out of memory exception and would like to know where to tell tomcat 
to use more memory

(2) my tomcat installation directory is located on c:\ (this is where we keep 
development software), and d:\company_name\classes\... . How do i tell tomcat that my 
classes directory is located at the d:\ location

 

thank you 

Jason



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more


Re: JNDI Realm with Tomcat 4.0.1 and Netscape LDAP

2002-04-22 Thread Jonathan Eric Miller

I don't know if you noticed, but, the password has to be stored as a hex
string rather than a base64 encoded string in the directory in order for it
to work. I think there is a patch that is supposed to fix this that I think
is supposed to be included when Tomcat 4.1 comes out. Also, there's supposed
to be another method of authentication where it binds as the user themself
rather than as the administrator and querying in order to verify the user's
password.

Jon

- Original Message -
From: Allen Chesley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 12, 2002 11:20 AM
Subject: JNDI Realm with Tomcat 4.0.1 and Netscape LDAP


 I am having problems trying to get a Tomcat 4.0.3 installation to
 authenticate to a Netscape LDAP server using the built-in capability.
 Configuration:
 Solaris 8, patched to date
 Netscape Directory Server 4.16
 Tomcat 4.0.1
 J2SDK v1.4
 Apache 1.3.23

 I have edited the server.xml file to include a JNDIRealm entry as below:

 Realm classname=org.apache.catalina.realm.JNDIRealm
   contextFactory=com.netscape.jndi.ldap.LdapContextFactory
   debug=999
   digest=SHA
   connectionName=uid=tomcat,ou=Special Users,o=mydomain.com
   connectionPassword=secret
   connectionURL=ldap://ldapserver.mydoman.com:389;
   roleBase=ou=People,o=mydomain.com
   roleName=cn
   roleSearch=(uniqueMember={0})
   roleSubtree=true
   userpassword=userpassword
   userPattern=uid={0},ou=People,o=mydomain.com /

 I have confirmed that I am contacting the LDAP server, finding the user
 account, and downloading the userPassword attribute, but authentication
 always fails.

 I have tried both th Sun and Netscape context factories with no
 difference.
 I have confirmed that the DN from the server uses the UID and not the
 CN.
 I have tried changeing the roleName to UID.
 I have tried deleting and changing the digest value.
 I have tried setting the roleSubtree to both true and false.
 I have confirmed tht my role groups are under ou=People,o=mydomain.com
 with the user accounts.

 Any ideas/help?  Has any body gotten the JNDIRealm in Tomcat 4 to work
 with Netscape?
 --
 Allen L. Chesley
 Senior Systems Engineer
 Raytheon



 --
 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]




Apache 2.0.35 configuration problem

2002-04-22 Thread Cheng Yan

I am tring to install Apache 2.0.35 on my Solaris 8 box which has gcc 2.95
installed in /usr/local

After I am running following command:

%
./configure --enable-mods-shared=all --prefix=/export/home/cyan/apache_tomca
t/apache_2.0.35

The last a few output lines are below:

---
  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to 1
checking for rm... (cached) /usr/bin/rm
checking for mawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -pthreads ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
--

Could someone kindly tell me how to fix this problem? Thanks.


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




Re: using more memory, different classpath

2002-04-22 Thread Jacob Kjome

Hello jason,

Monday, April 22, 2002, 2:14:39 PM, you wrote:


jw (1) i received an out of memory exception and would like to know where to tell 
tomcat to use more memory

use environment variables TOMCAT_OPTS (for Tomcat3.2.x or 3.3.x) and CATALINA_OPTS (for
Tomcat 4.xx) to add options that Tomcat should use at startup.

For instance  CATALINA_OPTS=-server -Xms8m -Xmx128m

Tells Tomcat 4.xx to start up with the server (rather than client) jvm
and and to set the initial size of the Java memory allocation pool
(that is, the heap) to 8 Mbytes, and then to set the maximum heap size
to 128 Mbytes.

See the following for reference:
http://developer.java.sun.com/developer/technicalArticles/Programming/JVMPerf/

jw (2) my tomcat installation directory is located on c:\ (this is where we keep 
development software), and d:\company_name\classes\... . How do i tell tomcat that my 
classes directory is located at
jw the d:\ location

Not sure about this one.  You mean, that you want tomcat to get its
application wide classes from your classes directory rather than
$TOMCAT_HOME/classes?

Hmmm... not sure how to do that?

Jake

jw thank you 

jw Jason



jw -
jw Do You Yahoo!?
jw Yahoo! Games - play chess, backgammon, pool and more



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: using more memory, different classpath

2002-04-22 Thread Tim Cronin

1) if your using 4.x you can increase memory /w the following env var

CATALINA_OPTS=-Xmsthe number of megs to start withm 

-Original Message-
From: jason wood [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:15 PM
To: [EMAIL PROTECTED]
Subject: using more memory, different classpath



(1) i received an out of memory exception and would like to know where to
tell tomcat to use more memory

(2) my tomcat installation directory is located on c:\ (this is where we
keep development software), and d:\company_name\classes\... . How do i tell
tomcat that my classes directory is located at the d:\ location

 

thank you 

Jason



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more

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




RE: JDBC realm problems

2002-04-22 Thread Januski, Ken

Thanks Rick,

I did solve it by changing the  to amp; and that worked. But it's good
to know that there is an alternative and how to go about using it.

Ken



-Original Message-
From: Rick Fincher [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:08 PM
To: Tomcat Users List
Subject: Re: JDBC realm problems


Hi Ken,

The spec allows the values:

 connectionName=username
 connectionPassword=password

in the realm tag in server.xml.  You might try that instead of putting the
username and password in the connection URL.

Tomcat then builds the string for the URL with the connection parameters in
it.

Rick


 Yes I have. After some more investigation I think the problem is this: the
 entry in server.xml is like this user=ken;password=ken. But mySQL wants a
  and xml parser demands a ;. With a ; mySQL thinks no password was
 sent and so denies me with 'password: no'. With  debug=99 comes into
play
 and tells me The reference to entity 'password' must end with the ';'
 delimiter. But as soon as I do that then mySQL no longer sees the
 password!!

 I have read about the need to change the ; to  while investigating on
 google so I know some people have found that necessary. My problem is that
I
 then get the parser error.

 So it seems to me I'm sitting on the horns of a dilemma from which I hope
 someone can remove me.

 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: using more memory, different classpath

2002-04-22 Thread Tim Cronin

(assuming 4.xx)
if you follow the startup script the CLASSPATH is reset when tomcat is
started,
see setclasspath .sh/.bat. 

You can jar your files and place them CATALINA_HOME\common\lib
or if your lazy like me you could modify the setclasspath. 
Beware if your using the j2ee lib you will create conflicts 
if you have the j2ee.jar in the class path.

I had to have the following jars in the following order for tomcat to
work...
CATALINA_HOME\common\lib\servlet.jar;
CATALINA_HOME\server\lib\tomcat-ajp.jar;
CATALINA_HOME\server\lib\tomcat-util.jar;
J2EE_HOME\lib\j2ee.jar

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 2:44 PM
To: Tomcat Users List
Subject: Re: using more memory, different classpath


Hello jason,

Monday, April 22, 2002, 2:14:39 PM, you wrote:


jw (1) i received an out of memory exception and would like to know where
to tell tomcat to use more memory

use environment variables TOMCAT_OPTS (for Tomcat3.2.x or 3.3.x) and
CATALINA_OPTS (for
Tomcat 4.xx) to add options that Tomcat should use at startup.

For instance  CATALINA_OPTS=-server -Xms8m -Xmx128m

Tells Tomcat 4.xx to start up with the server (rather than client) jvm
and and to set the initial size of the Java memory allocation pool
(that is, the heap) to 8 Mbytes, and then to set the maximum heap size
to 128 Mbytes.

See the following for reference:
http://developer.java.sun.com/developer/technicalArticles/Programming/JVMPer
f/

jw (2) my tomcat installation directory is located on c:\ (this is where we
keep development software), and d:\company_name\classes\... . How do i tell
tomcat that my classes directory is located at
jw the d:\ location

Not sure about this one.  You mean, that you want tomcat to get its
application wide classes from your classes directory rather than
$TOMCAT_HOME/classes?

Hmmm... not sure how to do that?

Jake

jw thank you 

jw Jason



jw -
jw Do You Yahoo!?
jw Yahoo! Games - play chess, backgammon, pool and more



-- 
Best regards,
 Jacobmailto:[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 and Apache 2

2002-04-22 Thread Michael Delamere

Sorry, it does work!

However when I add the following lines in my virtual host directive like so:

VirtualHost 192.168.10.1:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /www/servtest/java
ServerName servtest.intern.delamere.de
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /jboss/
ErrorLog
/usr/local/apache2.0.35/logs/servtest.intern.delamere.de-error_log
CustomLog
/usr/local/apache2.0.35/logs/servtest.intern.delamere-access_log common
/VirtualHost

I get the following error:

Syntax error on line 32 of /usr/local/apache2.0.35/conf/hosts.conf:
Invalid port number (p1) No Port statement found

What am I missing here.  Sorry to bother you further but I could do with
your help.

bye Michael Delamere


- Original Message -
From: Michael Delamere [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 8:55 PM
Subject: Re: Tomcat and Apache 2


 Simon,

 first of all, thank you very much for taking up your time in producing
such
 an excellent how-to!!

 Secondly, I´m having problems.  Although your information is very clear I
 appear to have problems during the last compile process (or maybe
 earlier??).

 After entering the command:
 --
 ${APACHE_HOME}/build/libtool --silent --mode=link \
 gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
 -module -avoid-version -I../include  -L../lib -dlopen
 ../lib/libwebapp.la  mod_webapp.lo
 cp mod_webapp.so ${APACHE_HOME}/modules/
 --

 I get the following error and mod_webapp.so does not get created:
 -
 libtool: link: warning: `AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen
 support.
 gcc: cp: No such file or directory
 gcc: mod_webapp.so: No such file or directory
 --

 I know you said that the error message should be ignored but for some
 reason, it´s not creating the mod_webapp.so file.

 Thanks for your help,

 bye Michael Delamere


 
  - Original Message -
  From: Alex Potter [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, April 22, 2002 4:44 PM
  Subject: Re: Tomcat and Apache 2
 
 
   Simon
  
   an excellent document, however, the location of the  mod_webapp
 connector
   source is given incorrectly on the web page, I guess the jakarta guys
  moved
   it?
  
   The correct location is
  
  
 

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jakar
   ta-tomcat-connectors-4.0.2-01-src.tar.gz
  
   http://makeashorterlink.com/?G22365CB
  
   HTH
  
   Alex
  
  
   - Original Message -
   From: Simon Stewart [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, April 22, 2002 3:23 PM
   Subject: Tomcat and Apache 2
  
  
There have been quite a few posts about how to integrate Apache 2
and
Tomcat 4, and Jeff Bonevich has posted a HOWTO here, which you may
have already read.
   
I've taken the HOWTO, edited it a bit and added some extra notes on
using Apache, Tomcat and JBoss 3 and put it on a website, because I
know that this is a hugely frustrating thing to have to work through
and having something like this might make life that little bit
easier.
   
If you're interested:
   
http://www.pubbitch.org/jboss.html
   
Let me know if you spot any typos ;)
   
Regards,
   
Simon
   
--
I've gone through over-stressed to physical exhaustion... what's
 next?
Tuesday --- Simon Burr  Kyle Hearn
   
--
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: How to logout for the browser based authentication?

2002-04-22 Thread Oktay Altunergil

You have to close the browser otherwise the cached username/password will still work. 
You might also close other instances that were spawned from the same parent. ( like 
opening up one browser and creating new instances within that browser ) 

Is it clean enough? This is probably dependend on the browser itself.

Oktay Altunergil

On Mon, 22 Apr 2002 16:45:59 -0400
Alvin Wang [EMAIL PROTECTED] wrote:

 Is there anyway other than closing the browser rudely? And is it clean
 enough to close the browser?
 
 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]




  1   2   >