Userdatabase in Ldap

2003-10-12 Thread Robert Einsle
Hy List,

is it posible to store the Basic Userdate, Authentication for admin and
manager-GUI, in an LDAP-Directory??

Until now, i don't find any informqrmation about that. I the an Howto
available??

Thanks a lot for Help

-- 

\Robert


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



Re: Difficulty in compiling a servlet.

2003-10-12 Thread Eric C
Don't you have a syntax error somewhere ?

DBUpadate



- Original Message -
From: anunay ashish [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, October 11, 2003 2:27 PM
Subject: Difficulty in compiling a servlet.


 Hi,

 The code for my bean is:

 package com.scheduler;
 import java.sql.*;
 public class DBUpdate
 {
 private Connection conn;
 private Statement stmt;
 private ResultSet rs;
  public DBUpdate()
 {
 conn = null;
 stmt = null;
 rs = null;
 }
  public void process(String query)
 {
 try
 {

Class.forName(oracle.jdbc.driver.OracleDriver).newInstance();
 Connection conn =
 DriverManager.getConnection(jdbc:oracle:thin:@192.168.10.36:1521:myData,
 mangesh, mangesh);
 stmt = conn.createStatement();
 rs = stmt.executeQuery(query);
System.out.println(Query:  + query +  executed);
 }
 catch(Exception exception1)
 {
 System.out.println(Error occured in DBUpdate.process()
 SQLException : + exception1);
 }
 }
  public ResultSet getResultSet() throws SQLException
 {
  return rs;
 }
  public void destroy()
  {
 conn = null;
 stmt = null;
 rs = null;
  }
 }

 And for my servlet is:

 package com.scheduler;
 import java.io.*;
 import java.sql.*;
 import java.text.*;
 import java.util.*;
 import javax.servlet.*;
 import javax.servlet.http.*;

 public class addDataServlet extends HttpServlet
 {
  private String pageFormat;
  public void doPost(HttpServletRequest request, HttpServletResponse
 response) throws ServletException, IOException
  {
   ResultSet testRS;
   DBUpdate dbupdate = new DBUpdate();
   pageFormat = request.getParameter(newPageFormat);
   PrintWriter out = response.getWriter();
   out.print(pageFormat);
   String query = Select * from lookup_page_format;
   dbupdate.process(query);
   try
   {
testRS = dbupdate.getResultSet();
   while(testRS.next())
{
 out.print(testRS.getString(2));
 out.print(hi);
}
   }
   catch (SQLException e)
   {
out.println(SQLException : + e);
   }
   try
   {
//set the attribute and forward to pageFormat.jsp
request.setAttribute(servletName, addDataServlet);


getServletConfig().getServletContext().getRequestDispatcher(/Tracking_syste
 m/pageFormat.jsp).forward(request, response);
   }
   catch (Exception ex)
   {
ex.printStackTrace ();
   }
  }
 }

 On compiling the addDataServlet.java, an error is coming - Unresolved
 symbol:Class DBUpadate is not resolved
 Where I am doing wrong?

 Thanks in advance.
 Regards,
 Anunay.


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



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



Easy : CLASSPATH problem

2003-10-12 Thread Eric C
Hi all,

I just installed tomcat 5 to benefits servlet 2.4 implementation

But where shall i point my classpath to ?
E:\java\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\server\lib ?
But javac doesn't take it in consideration.
There several servlet*.jar files but which one is the good one for javac ?

Do you know a good web page that explain :

- Which actually contains the differents servlet*.jar from tomcat dir ?

Regards all,
ERic




Re: tomcat jitters, then hangs - please help

2003-10-12 Thread Noam Camiel

On Thursday, October 09, 2003 10:39 PM Remy Maucherat [EMAIL PROTECTED]
wrote:
 It is very surprising that the connector will manage to exit the accept
 loop without logging some kind of error (which would be in catalina.out,
 rather than in the main logs). Do you see some stack trace originating
 from the PoolTcpEndpoint or ThreadPool classes ?

There were no logs indicating this, and actually, after the server started
there are no other logs appearing in catalina.out

 No idea at this point. Most (all) such reports were for RH 9. All also
 mention a period of about a day before an incident.

Thanks, let me know if there's any news.
Regards,
Noam



- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 10:39 PM
Subject: Re: tomcat jitters, then hangs - please help


 Noam Camiel wrote:
  On Thursday, October 09, 2003 5:11 PM Ryan Lissack
  [EMAIL PROTECTED] wrote:
 
 Hi Noam,
 
 We have experienced similar problems.  You will notice in the thread
dump
 that there is no thread from the connectors thread pool waiting on an
 accept
 
 
  I see your what you mean, I compared the thread dump to a good dump
when
  the server is operational and there indeed I found a thread from the
  connectors thread pool waiting on accept:
 
  3XMTHREADINFO  http80-Processor24 (TID:0x100688E0,
  sys_thread_t:0x87810C0, state:R, native ID:0x41CCCF40) prio=5
  4XESTACKTRACE  at java.net.PlainSocketImpl.socketAccept(Native
  Method)
 
  This does not appear to exist in the bad dump.

 It is very surprising that the connector will manage to exit the accept
 loop without logging some kind of error (which would be in catalina.out,
 rather than in the main logs). Do you see some stack trace originating
 from the PoolTcpEndpoint or ThreadPool classes ?

 What OS are you on, RH9??
 
  Yes, Im on RH9.
 
  Any ideas why this could happen?  could it be some system resource
limit?
  Is your application an intensive app? My application is not an intensive
one
  and the hangs occur hours after i start the server (usually a day
later).

 No idea at this point. Most (all) such reports were for RH 9. All also
 mention a period of about a day before an incident.

 --
 x
 Re'my Maucherat
 Senior Developer  Consultant
 JBoss Group (Europe) Sa`RL
 x


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



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



Re: Easy : CLASSPATH problem

2003-10-12 Thread Eric C
... found out : set classpath to servlet-api.jar not
sry for noise
 
- Original Message - 
From: Eric C [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 10:34 AM
Subject: Easy : CLASSPATH problem


Hi all,

I just installed tomcat 5 to benefits servlet 2.4 implementation

But where shall i point my classpath to ?
E:\java\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\server\lib ?
But javac doesn't take it in consideration.
There several servlet*.jar files but which one is the good one for javac ?

Do you know a good web page that explain :

- Which actually contains the differents servlet*.jar from tomcat dir ?

Regards all,
ERic





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



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

2003-10-12 Thread Ilja
In tried installing opencms (www.opencms.org), but got the following
error when running on Tomcat 5.0.7:

I think this is a Tomcat 5.0.x related problem, since according to the
developers it runs fine on a Tomcat 4.2.x version. They don't know where
lies the problem..

The root-cause:

org.apache.jasper.JasperException: Unable to compile class for JSP
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:752)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:640)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:552)
at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:180)
at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
at 
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:268)
at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:254)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:489)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
at java.lang.Thread.run(Thread.java:554)

The index.jsp:

%@ page session=false %
%@ taglib prefix=cms uri=http://www.opencms.org/taglib/cms; %
cms:include property=template suffix=.jsp element=head /

h1Congratulations!/h1

h3If you're seeing this page via a web browser, it means you've setup
OpenCms successfully./h3


pYour installed OpenCms version is: cms:info
property=opencms.version /br
span class=smallRunning on 
cms:info property=java.vm.vendor / 
cms:info property=java.vm.name / 
cms:info property=java.vm.version / 
cms:info property=java.vm.info / with
cms:info property=os.name / 
cms:info property=os.version / 
(cms:info property=os.arch /)/span/p


pAs you may have guessed by now, this is the default OpenCms home page. 
It can inot/i be found on the local file system ;-) but in the
OpenCms

Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-12 Thread Tim Funk
Move the Realm declaration outside of the Context declaration into the 
Host declaration. Or refine the Realm in each context where it is needed.

-Tim

Caroline Jen wrote:
My applications behave wierd after I configured the
JDBCRealm.  After experimenting in many different
ways, I found that as long as I have the JDBCRealm in
the server.xml, the Tomcat does not accept
security-constraint specified in the application's
web.xml file.  Please help me.
My configuration in the $TOMCAT_HOME/conf/sever.xml is
shown below:
Engine
Host
Context
Realm className=org.apache.catalina.realm.JDBCRealm
debug=99
 driverName=com.mysql.jdbc.Driver
 connectionURL=jdbc:mysql://localhost:3306/artimus 
 user=javauserpassword=javadude
 userTable=members userNameCol=user_name 
 userCredCol=user_password
 userRoleTable=user_roles roleNameCol=user_role/
/Context
/Host
/Engine



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


Apache Tomcat mod_jk 1.2.5 WSC configuration for Tomcat 5

2003-10-12 Thread Thorsten Westmeier
Hi,

if I interpret the Version-Number correctly, then it is a follower of the 
old JK Connector and not of the new JK2.

Can I use my old uriworkermap.properties and workers.properties?

Which changes has to be made in the Tomcat 5 server.xml to use the new 
Connector-Version 1.2.5? By default, Tomcat 5 is configured for JK2, or not?

Thanks for your help,
Thorsten


At 12:52 11.10.2003 -0500, you wrote:
The Tomcat team is pleased to announce the release of version 1.2.5 of the 
Apache
Tomcat mod_jk web server connector.


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


RE: redirect port 8080 to 443

2003-10-12 Thread Steph Richardson

You can have tomcat automatically make redirects to https ( and whatever port is 
configured in the redirectPort attribute of your
http Connecter - 443 usually ), you can add some constraints in web.xml. Try this 
altered for whatever directories you want to be
https only :
security-constraint
web-resource-collection
web-resource-nameSome Directories/web-resource-name
url-pattern/secure/*/url-pattern
url-pattern/checkout/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

Beware now of issues with welcome-file-list redirects happening at the same time as 
this one. You can end up with situations where
tomcat sends you to https on the http port. e.g. : 
https://myserver.com:8080/secure.index.jsp



Steph




 -Original Message-
 From: Bill Barker [mailto:[EMAIL PROTECTED]
 Sent: Saturday, October 11, 2003 12:39 AM
 To: [EMAIL PROTECTED]
 Subject: Re: redirect port 8080 to 443


 It's in the FAQ:
 http://jakarta.apache.org/tomcat/faq/security.html#https

 Twan Munster [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hello,

 I'm using apache+mod_ssl+mod_jk to make a secure connection.
 But every time I call a page in cocoon it is called through port 8080. Is it
 possible to redirect a call to port 8080  to port 443? And not for the
 entire server, but only for a certain directory?How is this done?

 thnx

 Twan




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





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



Re: Apache Tomcat mod_jk 1.2.5 WSC configuration for Tomcat 5

2003-10-12 Thread Giuliano Gavazzi
At 17:04 +0200 2003/10/12, Thorsten Westmeier wrote:
Hi,

if I interpret the Version-Number correctly, then it is a follower 
of the old JK Connector and not of the new JK2.
I can confirm that.

Can I use my old uriworkermap.properties and workers.properties?
I have just managed to build jk1.2.5 and jk2 on MacOSX (and am 
writing a page on that, plus make the modules available). I replaced 
my previous mod_jk with the 1.2.5 with no configuration changes 
(Apache2 + tomcat4.1). I cannot speak about tomcat 5 as I had many 
problems yesterday with it, so I reversed to the latest 4.1 instead.

Which changes has to be made in the Tomcat 5 server.xml to use the 
new Connector-Version 1.2.5? By default, Tomcat 5 is configured for 
JK2, or not?

[...]

Giuliano
--
H U M P H
   || |||
 software
Java  C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache Tomcat mod_jk 1.2.5 WSC configuration for Tomcat 5

2003-10-12 Thread Eric C
Hello,

I read once that tomcat 5 is designed to handle the static files.
Is mod_jk still necessary then ?
do you have any experience on that ?

Regards,
ERic
- Original Message - 
From: Giuliano Gavazzi [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 6:34 PM
Subject: Re: Apache Tomcat mod_jk 1.2.5 WSC configuration for Tomcat 5


 At 17:04 +0200 2003/10/12, Thorsten Westmeier wrote:
 Hi,
 
 if I interpret the Version-Number correctly, then it is a follower 
 of the old JK Connector and not of the new JK2.
 
 I can confirm that.
 
 Can I use my old uriworkermap.properties and workers.properties?
 
 I have just managed to build jk1.2.5 and jk2 on MacOSX (and am 
 writing a page on that, plus make the modules available). I replaced 
 my previous mod_jk with the 1.2.5 with no configuration changes 
 (Apache2 + tomcat4.1). I cannot speak about tomcat 5 as I had many 
 problems yesterday with it, so I reversed to the latest 4.1 instead.
 
 Which changes has to be made in the Tomcat 5 server.xml to use the 
 new Connector-Version 1.2.5? By default, Tomcat 5 is configured for 
 JK2, or not?
 
 [...]
 
 Giuliano
 -- 
 H U M P H
 || |||
   software
 
 Java  C++ Server/Client/Human Interface applications on MacOS - MacOS X
 http://www.humph.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



tomcat5.0 source update build errors

2003-10-12 Thread Michael C. Starkie
I'm trying to update my build of tomcat5.0.  I go to my $CATALINA_HOME 
directory and and enter:  ant

this is what I get:

build-commons-daemon:
[echo] == Building: commons-daemon
BUILD FAILED
file:/home/mike/dev/tomcat5.0/jakarta-tomcat-5/build.xml:482: 
java.io.FileNotFoundException: 
/home/mike/dev/tomcat5.0/jakarta-commons/daemon/build.xml (No such file 
or directory)



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


Re: tomcat5.0 source update build errors

2003-10-12 Thread Michael C. Starkie
Michael C. Starkie wrote:

I'm trying to update my build of tomcat5.0.  I go to my $CATALINA_HOME 
directory and and enter:  ant

this is what I get:

build-commons-daemon:
[echo] == Building: commons-daemon
BUILD FAILED
file:/home/mike/dev/tomcat5.0/jakarta-tomcat-5/build.xml:482: 
java.io.FileNotFoundException: 
/home/mike/dev/tomcat5.0/jakarta-commons/daemon/build.xml (No such 
file or directory)



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


The solution to this problem is to simply blow away the ${tomcat.source} 
directory, recreate it, download the build.xml file again and rebuild 
tomcat by issuing ant from the new ${tomcat.source}

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


Re: form-based authentication session.invalidate

2003-10-12 Thread Adam Hardy
Although I've no real idea what an internal tomcat SessionEvent is, it 
sounds like it's a bug. Give me the word and I'll enter it in bugzilla.

Adam

On 10/12/2003 01:57 AM Tim Funk wrote:
Hmm. I always thought that when using the SSO valve, logging out of one 
webapp automatically logs you out of all webapps.

The 5 code looks broken based on *very quick* inspection compared to 4.1 
based on lines 304-308.

if ( event.getData() != null
  logout.equals( event.getData().toString() )) {
// logout of all applications
deregister(ssoId);
} else {
// invalidate just one session
deregister(ssoId, session);
}
I haven't been able to locate how logout can be a value in a SessionEvent.

-Tim

Adam Hardy wrote:

I have just figured out that the SSO in JSESSIONIDSSO stands for 
single-sign-on.

I have the following JSP:

remote user %=request.getRemoteUser() % in
session %= session.getId() %
%
session.invalidate();
%
and after doing a login, I saw I got JSESSIONID and JSESSIONIDSSO 
cookies. I then go to a second site on my tomcat and get a second 
JSESSIONID without having to do a login coz of SSO.

Now going to this page which has the stuff above, and refreshing over 
and over always showed the following:

remote user adam in session EB2543D909D52551EA58C77E963CDD17
remote user adam in session EA33F35CCB3D1205A88226029C65939C
remote user adam in session 8814C0365D3F0BDD97B1DE9B7EAECD17
remote user adam in session 1B7F0424190985F24A294EA2344888C5
I see the JSESSIONIDSSO cookie is keeping my remoteUser info active. 
This shouldn't be the case I'm sure. If I delete the SSO cookie in 
mozilla, I get a login request on my next request.

Also if I only login to one site, even though I get the SSO cookie, 
when I invalidate the session, I immediately get a login request. 
Strange.

This is not correct behaviour for tomcat, is it?

Adam


--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [HELP!] Which key alias names to use for SSL?

2003-10-12 Thread Adam Hardy
On 10/11/2003 11:12 PM Sonny Sukumar wrote:
Hi Adam,

Your first step was:

# keytool -genkey -alias tomcat -keyalg RSA


and your last step was:

# keytool -import trustcacerts -file public.crt -alias tomcat


So you used the same alias (tomcat) for both the private key and the 
signed public key.  This is what doesn't work for me, because when I 
import the signed public key using the same (tomcat) alias, my private 
key gets overwritten.  I've verified this using keytool list -keystore 
./.keystore

I also have the root cert from GeoTrust in there with alias root.  The 
root cert is actually an Equifax cert valid from 1998 to 2018, but the 
GeoTrust tech support rep told me to use that one.  Could this be the 
problem?

Other ideas?
Sorry, but I've no real experience with this myself. You've lost me 
there on the root alias. I was hoping someone else might jump in with 
some advice for you. Did you check the rest of the thread in the list 
archive?

Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [HELP!] Which key alias names to use for SSL?

2003-10-12 Thread Bill Barker

Sonny Sukumar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 From: Bill Barker [EMAIL PROTECTED]

  
   --I reconfigured the SSL port from 8443 to 443 on our server (as well
as
 the
   redirect port), and all of a sudden I can connect using SSL.  I don't
   understand why 8443 didn't work.  Any ideas??
  
 
 There is a well-know bug in MSIE related to security-constraints, but
that
 doesn't seem to apply here.

 Hmm, what's that bug?  I'd like to know because I next plan to implement
 some security-constraints to prevent insecure access to certain pages
and
 sets of pages.


If you are running SSL on a non-standard port (e.g. 8443), and the user
attempts to access a page (via http) which is protected with both an
auth-constraint and a transport-guarantee, MSIE will fumble around and end
up issuing a request for 'http://host:8443/myapp/login.jsp' (which of course
will fail).  It doesn't happen if you are using the standard SSL port (i.e.
443), or with Tomcat 5.

 _
 Frustrated with dial-up? Get high-speed for as low as $29.95/month
 (depending on the local service providers in your area).
 https://broadband.msn.com




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



Re: [HELP!] Which key alias names to use for SSL?

2003-10-12 Thread Sonny Sukumar

From: Adam Hardy [EMAIL PROTECTED]

On 10/11/2003 11:12 PM Sonny Sukumar wrote:
Hi Adam,

Your first step was:

# keytool -genkey -alias tomcat -keyalg RSA


and your last step was:

# keytool -import trustcacerts -file public.crt -alias tomcat


So you used the same alias (tomcat) for both the private key and the 
signed public key.  This is what doesn't work for me, because when I 
import the signed public key using the same (tomcat) alias, my private 
key gets overwritten.  I've verified this using keytool list -keystore 
./.keystore

I also have the root cert from GeoTrust in there with alias root.  The 
root cert is actually an Equifax cert valid from 1998 to 2018, but the 
GeoTrust tech support rep told me to use that one.  Could this be the 
problem?

Other ideas?
Sorry, but I've no real experience with this myself. You've lost me there 
on the root alias. I was hoping someone else might jump in with some advice 
for you. Did you check the rest of the thread in the list archive?

Adam
No worries Adam, I solved the problem after all.  keytool just lists the 
certs in a somewhat confusing way by default...so I thought my signed 
imported cert overwrote my private key when it really didn't, but was 
bundled with it under the same alias instead.

Thanks for your help,

Sonny

_
Get MSN 8 Dial-up Internet Service FREE for one month.  Limited time offer-- 
sign up now!   http://join.msn.com/?page=dept/dialup

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


Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-12 Thread Caroline Jen
Tim:

Would you explain refine the Realm in each
context where it is needed?

-Caroline
--- Tim Funk [EMAIL PROTECTED] wrote:
 Move the Realm declaration outside of the Context
 declaration into the 
 Host declaration. Or refine the Realm in each
 context where it is needed.
 
 -Tim
 
 Caroline Jen wrote:
  My applications behave wierd after I configured
 the
  JDBCRealm.  After experimenting in many different
  ways, I found that as long as I have the JDBCRealm
 in
  the server.xml, the Tomcat does not accept
  security-constraint specified in the
 application's
  web.xml file.  Please help me.
  
  My configuration in the
 $TOMCAT_HOME/conf/sever.xml is
  shown below:
  
  Engine
  Host
  Context
  Realm
 className=org.apache.catalina.realm.JDBCRealm
  debug=99
   driverName=com.mysql.jdbc.Driver
  
 connectionURL=jdbc:mysql://localhost:3306/artimus 
   user=javauserpassword=javadude
   userTable=members userNameCol=user_name 
   userCredCol=user_password
   userRoleTable=user_roles
 roleNameCol=user_role/
  /Context
  /Host
  /Engine
  
 
 
 

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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



HOWTO: build mod_jk (1.2.5) and mod_jk2 on MacOSX.

2003-10-12 Thread Giuliano Gavazzi
I have completed a basic document on how to build these modules:

http://www.humph.com/docs/mod_jk.html (update after a lng time!)

it is a bit rough, but it works. Instructions scripts and binaries 
are at your own risk.

I am not totally sure to have done mod_jk2 the proper way, it must be 
tested in a work environment.

Configuration help is not supplied but I may answer kind requests.

Thanks

Giuliano
--
H U M P H
   || |||
 software
Java  C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-12 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Configuring%20a%20Realm

-Tim

Caroline Jen wrote:
Tim:

Would you explain refine the Realm in each
context where it is needed?
-Caroline
--- Tim Funk [EMAIL PROTECTED] wrote:
Move the Realm declaration outside of the Context
declaration into the 
Host declaration. Or refine the Realm in each
context where it is needed.

-Tim

Caroline Jen wrote:

My applications behave wierd after I configured
the

JDBCRealm.  After experimenting in many different
ways, I found that as long as I have the JDBCRealm
in

the server.xml, the Tomcat does not accept
security-constraint specified in the
application's

web.xml file.  Please help me.

My configuration in the
$TOMCAT_HOME/conf/sever.xml is

shown below:

Engine
Host
Context
Realm
className=org.apache.catalina.realm.JDBCRealm

debug=99
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://localhost:3306/artimus 

user=javauserpassword=javadude
userTable=members userNameCol=user_name 
userCredCol=user_password
userRoleTable=user_roles
roleNameCol=user_role/

/Context
/Host
/Engine


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


RE: Jav.util.logging URGENT

2003-10-12 Thread Galbayar
java version 1.4.1_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode)

-Original Message-
From: Joseph Krasnov [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 12:21 AM
To: 'Tomcat Users List'
Subject: RE: Jav.util.logging URGENT


What version of Java are you using?

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 11, 2003 2:54 AM
To: Tomcat Users List
Subject: Jav.util.logging URGENT

Hi, I am learning to use logger. I have a code snippet below

package test
import java.io.IOException;
import java.io.Serializable;

import java.text.SimpleDateFormat;

import java.util.Date;
import java.util.logging.FileHandler;
import java.util.logging.SimpleFormatter;



public class Logger implements Serializable {
static SimpleDateFormat sdf = new SimpleDateFormat(_MM_dd);

public static void logInfo(String message) {
try {
java.util.logging.Logger logger =
java.util.logging.Logger.getLogger(
test);
FileHandler fh = new FileHandler(C:/ubs_ + sdf.format(new
Date()) + .log, true);
fh.setFormatter(new SimpleFormatter());
logger.addHandler(fh);
logger.info(message);
} catch (SecurityException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}

after called   Logger.logInfo(test) 2 times created 5 files?

ubs_2003_10_11.log
ubs_2003_10_11.log.lck
ubs_2003_10_11.log.1
ubs_2003_10_11.log.1.lck
ubs_2003_10_11.log.2
ubs_2003_10_11.log.2.lck

what's happened? i need Logger create one file?
Thanks in advance



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




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


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



Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-12 Thread Caroline Jen
Tim:

 Before I posted my questions regarding the
problem that I encountered, I have gone through
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Configuring%20a%20Realm

 As long as I have the JDBCRealm in
the server.xml, the Tomcat does not accept
security-constraint specified in the application's
web.xml file.  And the Tomcat cannot find my
application.

 Following your advice, I moved the Realm
declaration outside of the Context declaration into
the Host declaration, and my problem is solved.

 Nonetheles, you also said refine the Realm in
each context where it is needed.  I really want the
JDBCRealm applies to my application only.  My question
is how do I do it?

 Currently, my JDBCRealm looks like:

Engine
 Host
 Realm
className=org.apache.catalina.realm.JDBCRealm 
debug=99
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://localhost:3306/artimus?
   user=javauseramp;password=javadude 
userTable=members userNameCol=user_name 
userCredCol=user_password
userRoleTable=user_roles roleNameCol=user_role/

  Context
.
  /Context
 /Host
/Engine
 
--Caroline
 

My configuration in the $TOMCAT_HOME/conf/sever.xml is
shown below:

Engine
Host
Context
Realm className=org.apache.catalina.realm.JDBCRealm
debug=99
 driverName=com.mysql.jdbc.Driver
 connectionURL=jdbc:mysql://localhost:3306/artimus 
 user=javauserpassword=javadude
 userTable=members userNameCol=user_name 
 userCredCol=user_password
 userRoleTable=user_roles roleNameCol=user_role/
/Context
/Host
/Engine


--- Tim Funk [EMAIL PROTECTED] wrote:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Configuring%20a%20Realm
 
 -Tim
 
 Caroline Jen wrote:
  Tim:
  
  Would you explain refine the Realm in each
  context where it is needed?
  
  -Caroline
  --- Tim Funk [EMAIL PROTECTED] wrote:
  
 Move the Realm declaration outside of the
 Context
 declaration into the 
 Host declaration. Or refine the Realm in each
 context where it is needed.
 
 -Tim
 
 Caroline Jen wrote:
 
 My applications behave wierd after I configured
 
 the
 
 JDBCRealm.  After experimenting in many different
 ways, I found that as long as I have the
 JDBCRealm
 
 in
 
 the server.xml, the Tomcat does not accept
 security-constraint specified in the
 
 application's
 
 web.xml file.  Please help me.
 
 My configuration in the
 
 $TOMCAT_HOME/conf/sever.xml is
 
 shown below:
 
 Engine
 Host
 Context
 Realm
 
 className=org.apache.catalina.realm.JDBCRealm
 
 debug=99
  driverName=com.mysql.jdbc.Driver
 
 
 connectionURL=jdbc:mysql://localhost:3306/artimus
 
 
  user=javauserpassword=javadude
  userTable=members userNameCol=user_name 
  userCredCol=user_password
  userRoleTable=user_roles
 
 roleNameCol=user_role/
 
 /Context
 /Host
 /Engine
 
 
 
 

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



__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Hosting

2003-10-12 Thread Rafael Angarita
  Hi,

  I know this could be a little off topic, but I would like some suggestions about 
with alternatives to host my website (I need a mysql DB and J2EE support)

  Thanks in advance,

RE: Hosting

2003-10-12 Thread Richard Mixon (qwest)
We are extremely happy with the support, capabilities and overall value offered by 
http://www.mmaweb.net .  If your site is
commercial or is critical that it be available, I would check them out. We have tried 
some cheaper sites, but it was not worth the
grief. Their support staff is very knowledgable, responsive and helpful. Also, all of 
their equipment runs Sun Solaris on SPARC
boxes.

-Original Message-
From: Rafael Angarita [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 8:01 PM
To: Tomcat Users List
Subject: Hosting


  Hi,

  I know this could be a little off topic, but I would like some suggestions about 
with alternatives to host my website (I need a
mysql DB and J2EE support)

  Thanks in advance,



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




RE: Help root context problem!!!

2003-10-12 Thread JStanczak
Yes, I did this. But the problem looks to me like the server is caching 
the page and not the client. Because, when you access the servlet directly 
it refreshes the content just fine, but when you access it through the jsp 
page that forwards the request it never changes after the first request.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813




Wade Chandler [EMAIL PROTECTED]
10/10/2003 12:26 PM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Help root context problem!!!


I did not see the other posts, but anytime I have a problem with issues
like this I use a meta tag to make the page expire some time ago.  I
usually put stuff like this:
META HTTP-EQUIV=expires CONTENT=Tue, 2 OCT 1996 17:45:00 GMT

in my head.  There is also a header which you can set in your
jsp/servlet code of the same name (Expires)..that is what the HTTP-EQUIV
does.  Says in this html take this to be the same as an http header and
use it as such.

Hope that helps,

Wade


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2003 1:14 PM
To: Tomcat Users List
Subject: RE: Help root context problem!!!


Well, I got it to work, but I don't care for it. I'd like to know what's

wrong if someone knows. Here's the jsp below:

%
java.net.URL url = new 
java.net.URL(request.getRequestURL().append(/PageWorks/servlet/PageMill
).toString());
java.net.URLConnection connect = url.openConnection();
connect.connect();

java.io.BufferedReader in = new java.io.BufferedReader(new 
java.io.InputStreamReader(connect.getInputStream()));
String html;
while((html = in.readLine()) != null){
out.write(html);
}
%

This works, but it's not very pretty of a method. Why doesn't the 
jsp:forward/ work? This way it doesn't cache the page forever on the 
server. If I just us jsp:forward it caches the page and never update
it's 
information from the servlet.


Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813



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





getting Tomcat's server status

2003-10-12 Thread Parviz Deyhim
Hi,

Is there any simple servlet that I can use to get Tomcat's stats as far as load and 
processing time goes. I know I can get all that through the manager UI, but that gives 
me so many other info that I dont need. It also requres auth, which I dont want. Is 
there any other way to get that info. Even if someone can tell me how to remove the 
auth from the manager servlet would do the same job for me.

thanks
Parviz

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



Re: Difficulty in compiling a servlet.

2003-10-12 Thread anunay ashish
I don't have a syntax error any where.
- Original Message -
From: Eric C [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, October 12, 2003 2:00 PM
Subject: Re: Difficulty in compiling a servlet.


 Don't you have a syntax error somewhere ?

 DBUpadate



 - Original Message -
 From: anunay ashish [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, October 11, 2003 2:27 PM
 Subject: Difficulty in compiling a servlet.


  Hi,
 
  The code for my bean is:
 
  package com.scheduler;
  import java.sql.*;
  public class DBUpdate
  {
  private Connection conn;
  private Statement stmt;
  private ResultSet rs;
   public DBUpdate()
  {
  conn = null;
  stmt = null;
  rs = null;
  }
   public void process(String query)
  {
  try
  {
 
 Class.forName(oracle.jdbc.driver.OracleDriver).newInstance();
  Connection conn =
 
DriverManager.getConnection(jdbc:oracle:thin:@192.168.10.36:1521:myData,
  mangesh, mangesh);
  stmt = conn.createStatement();
  rs = stmt.executeQuery(query);
 System.out.println(Query:  + query +  executed);
  }
  catch(Exception exception1)
  {
  System.out.println(Error occured in DBUpdate.process()
  SQLException : + exception1);
  }
  }
   public ResultSet getResultSet() throws SQLException
  {
   return rs;
  }
   public void destroy()
   {
  conn = null;
  stmt = null;
  rs = null;
   }
  }
 
  And for my servlet is:
 
  package com.scheduler;
  import java.io.*;
  import java.sql.*;
  import java.text.*;
  import java.util.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
 
  public class addDataServlet extends HttpServlet
  {
   private String pageFormat;
   public void doPost(HttpServletRequest request, HttpServletResponse
  response) throws ServletException, IOException
   {
ResultSet testRS;
DBUpdate dbupdate = new DBUpdate();
pageFormat = request.getParameter(newPageFormat);
PrintWriter out = response.getWriter();
out.print(pageFormat);
String query = Select * from lookup_page_format;
dbupdate.process(query);
try
{
 testRS = dbupdate.getResultSet();
while(testRS.next())
 {
  out.print(testRS.getString(2));
  out.print(hi);
 }
}
catch (SQLException e)
{
 out.println(SQLException : + e);
}
try
{
 //set the attribute and forward to pageFormat.jsp
 request.setAttribute(servletName, addDataServlet);
 
 

getServletConfig().getServletContext().getRequestDispatcher(/Tracking_syste
  m/pageFormat.jsp).forward(request, response);
}
catch (Exception ex)
{
 ex.printStackTrace ();
}
   }
  }
 
  On compiling the addDataServlet.java, an error is coming - Unresolved
  symbol:Class DBUpadate is not resolved
  Where I am doing wrong?
 
  Thanks in advance.
  Regards,
  Anunay.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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


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



HttpsURLConnection, Tomcat 4.1.27, and jsse.jar

2003-10-12 Thread Lukas Bradley
I'm having a strange problem with Tomcat and
javax.net.ssl.HttpsURLConnection.  I'm using Tomcat 4.1.27, JDK 1.4.1_04,
and the jsse.jar containing the javax.net.ssl and other fine classes.

I've read about certain bugs located here
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html#InstallProbs
under the heading Code Using HttpsURLConnection Class Throws
ClassCastException in JSSE 1.0.x.  That is exactly the problem I am having.

However, my command line tests work fine.  The JDK works fine by itself.
There is no ClassCastException.  That means that the regular command-line
version of the HttpsURLConnection is wonderful.  The JSSE classes are
configured correctly using java.

However, if you attempt to hit the jsp located at
http://www.dollars.com/URLTest.jsp, you'll get an error message with the
aforementioned ClassCastException.  Tomcat and/or Catalina are not finding
the classes, or are having a rough go with the configuration.

Since the JSSE classes now ship with JDK 1.4, I've been having a hard time
understanding why we are getting this error.  The only two ideas I have are
(1) Tomcat is running off an old JDK (which I don't think is the case) or
(2) there is some configuration error.

Attempting to place the System.setProperty() kludge-fix in the JSP, it
still doesn't work.

Does anyone have any insight as to how the Tomcat/Catalina settings could
have the JSSE classes misconfigured?

Also read this:
http://jce.iaik.tugraz.at/mailarchive/iaik-jce/msg02392.html
And this:
http://forum.java.sun.com/thread.jsp?forum=2thread=254821

But, as you will see in the JSP, it doesn't help.  I've also tried
javax.net.ssl in the package property, and it doesn't work.

Do any and all searches for jsse tomcat ClassCastException and you'll see
stuff.  I think you might have to explicitly install the JSSE classes into
the java \lib\ext directory, which still doesn't make sense, because they
should be included in 1.4.1 anyway.

Thanks for any and all help.

Lukas










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



Re: Tomcat JDBCRealm And security-constraint in the web.xml

2003-10-12 Thread Bill Barker

Caroline Jen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Tim:

  Before I posted my questions regarding the
 problem that I encountered, I have gone through

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Configuring%20a%20Realm

  As long as I have the JDBCRealm in
 the server.xml, the Tomcat does not accept
 security-constraint specified in the application's
 web.xml file.  And the Tomcat cannot find my
 application.

  Following your advice, I moved the Realm
 declaration outside of the Context declaration into
 the Host declaration, and my problem is solved.

  Nonetheles, you also said refine the Realm in
 each context where it is needed.  I really want the
 JDBCRealm applies to my application only.  My question
 is how do I do it?


If what is below is accurate, then your Context is configured wrong.  It
needs to be:
  Context path=/myapp docBase=myapp
Realm className=org.apache.catalina.realm.JDBCRealm
   . /
  /Context

You should probably also leave e.g. the UserDatabaseRealm configured under
the Host, so that other Contexts (i.e. admin  manager) have a Realm to
use.  By configuring your own Realm under your Context, it will override
the one defined in the Host.

  Currently, my JDBCRealm looks like:

 Engine
  Host
  Realm
 className=org.apache.catalina.realm.JDBCRealm
 debug=99
 driverName=com.mysql.jdbc.Driver
 connectionURL=jdbc:mysql://localhost:3306/artimus?
user=javauseramp;password=javadude
 userTable=members userNameCol=user_name
 userCredCol=user_password
 userRoleTable=user_roles roleNameCol=user_role/

   Context
 .
   /Context
  /Host
 /Engine

 --Caroline


 My configuration in the $TOMCAT_HOME/conf/sever.xml is
 shown below:

 Engine
 Host
 Context
 Realm className=org.apache.catalina.realm.JDBCRealm
 debug=99
  driverName=com.mysql.jdbc.Driver
  connectionURL=jdbc:mysql://localhost:3306/artimus
  user=javauserpassword=javadude
  userTable=members userNameCol=user_name
  userCredCol=user_password
  userRoleTable=user_roles roleNameCol=user_role/
 /Context
 /Host
 /Engine


 --- Tim Funk [EMAIL PROTECTED] wrote:
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Configuring%20a%20Realm
 
  -Tim
 
  Caroline Jen wrote:
   Tim:
  
   Would you explain refine the Realm in each
   context where it is needed?
  
   -Caroline
   --- Tim Funk [EMAIL PROTECTED] wrote:
  
  Move the Realm declaration outside of the
  Context
  declaration into the
  Host declaration. Or refine the Realm in each
  context where it is needed.
  
  -Tim
  
  Caroline Jen wrote:
  
  My applications behave wierd after I configured
  
  the
  
  JDBCRealm.  After experimenting in many different
  ways, I found that as long as I have the
  JDBCRealm
  
  in
  
  the server.xml, the Tomcat does not accept
  security-constraint specified in the
  
  application's
  
  web.xml file.  Please help me.
  
  My configuration in the
  
  $TOMCAT_HOME/conf/sever.xml is
  
  shown below:
  
  Engine
  Host
  Context
  Realm
  
  className=org.apache.catalina.realm.JDBCRealm
  
  debug=99
   driverName=com.mysql.jdbc.Driver
  
  
  connectionURL=jdbc:mysql://localhost:3306/artimus
 
  
   user=javauserpassword=javadude
   userTable=members userNameCol=user_name
   userCredCol=user_password
   userRoleTable=user_roles
  
  roleNameCol=user_role/
  
  /Context
  /Host
  /Engine
  
 
 
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 



 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.yahoo.com




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



Re: Apache Tomcat mod_jk 1.2.5 WSC configuration for Tomcat 5

2003-10-12 Thread Bill Barker

Thorsten Westmeier [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 if I interpret the Version-Number correctly, then it is a follower of the
 old JK Connector and not of the new JK2.


Yes.

 Can I use my old uriworkermap.properties and workers.properties?


Yes. No changes have been made to the configuration code.

 Which changes has to be made in the Tomcat 5 server.xml to use the new
 Connector-Version 1.2.5? By default, Tomcat 5 is configured for JK2, or
not?


No changes are required in server.xml for any Tomcat versions 3.3.x-5.0.x.
Just like with Tomcat 4.1.x, the Tomcat 5 JK2 Connector is fully compatible
with mod_jk (assuming that you are using channelSocket, since channelJNI and
channelUnix require mod_jk2).


 Thanks for your help,
 Thorsten



 At 12:52 11.10.2003 -0500, you wrote:
 The Tomcat team is pleased to announce the release of version 1.2.5 of
the
 Apache
 Tomcat mod_jk web server connector.




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