Re: HTTP user authentication

2003-04-04 Thread Bill Barker
Grab the pdf for the servlet-spec that you care about (TC3.3.x := 2.2,
TC4.1.x:= 2.3, TC5.x:= 2.4) and look at how to configure the
 element in your web.xml file.  It offers something
close to Apache's .httpaccess.

Of course, the true masochists can set tomcatAuth="false" on the connector,
and do everything via Apache's .htaccess/.htpasswd :-).

"Gabor 'Morc' Kormos" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>Hi Everybody,
>
>Can anyone tell me how could I set up Tomcat (any version) to do the
same
> kind of user authenticate that you can do with Apache's
.htaccess/.htpasswd?
>
>I tried to find info about it, but the docs seem to focus on the
servlet
> container/JSP and not on static HTML page serving.
>
>Thanks,
>
>Gabor 'Morc' Kormos.




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



Re: Is there a Online Archive for searching tomcat-users Mailinglist?

2003-04-04 Thread Bill Barker
The Apache mirror is at
http://nagoya.apache.org/eyebrowse/SummarizeList?listId=88.  I rarely use it
myself for this list (I prefer the nntp interface that I'm using now).

"Peter H." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks Peter
>
>
> _




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



Re: sendRedirect using

2003-04-04 Thread Bill Barker
The JSP-spec forbids  pages from changing headers, so Tomcat is
working as expected :-).  Probably the simplest way to do what you want is
to change the  directives to <[EMAIL PROTECTED]> directives.

"jakarta-pipon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i'd like to add some http headers, common  for all pages, so i put them
> inside a headers.jsp, included with .
> but by this way it does not put any http header.
> the java generated file for the jsp put
>
> // HTML // begin [file="/areas.jsp";from=(0,58);to=(1,0)]
> out.write("\r\n");
>
> // end
> // HTML // begin [file="/areas.jsp";from=(1,31);to=(2,0)]
> out.write("\r\n");
> and after those \r\n (finnishing the http headers) begins the code for
> header.jsp
> so how can i append http headers for the common behavior in all jsps?




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



Re: STRUTS in Tomcat?

2003-04-04 Thread Craig R. McClanahan


On Fri, 4 Apr 2003, Bill Barker wrote:

> Date: Fri, 4 Apr 2003 19:49:17 -0800
> From: Bill Barker <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: STRUTS in Tomcat?
>
>
> "Raible, Matt" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > The 4.1.x version of Tomcat has an Administration app that's written using
> > Struts.
>
> This is true.  However the struts jar is packaged in admin/WEB-INF/lib, so
> it isn't generally accessable to other web-apps.  There is nothing that
> stops you from copying the jar file to shared/lib, where it is available to
> all web-apps.
>

Except for the minor problem that it's not certified to work when
installed this way :-).

  http://jakarta.apache.org/struts/userGuide/configuration.html#config_add

For Struts 1.0 and 1.1, you should always package struts.jar (and the JARs
it depends on) in "/WEB-INF/lib" of your webapp.  More robust support for
running with a shared struts.jar is on the wishlist for Struts 1.2.

Craig

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



Re: how speficy an exclusive context ssl

2003-04-04 Thread Bill Barker
In your web.xml file add:
  
 
Protected Context
  /*
  
  
  
 CONFIDENTIAL
  
   

With this, Tomcat will attempt to redirect any http request to the context
to the https Connector, and will never serve it under http.

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Tomcat is configured to receive ssl-requests but dependly the
context , i want a forced a ssl connection.
for example, i have both context in server.xml like this :



how to force  to be https.
Or else how to force   to be http.

thanks

 Messages d´origine 
De: "Jan Behrens" <[EMAIL PROTECTED]>
Date: vendredi 4 avril  2003 15:08
Objet: RE: Not seeing new classes

> > -Original Message-
> > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 10:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Not seeing new classes
> >
> >
> > I'm playing with the Tomcat example jsp files, specifically the
> > date.jsp file.
> >
> > I can add a statement like:  <%= new java.util.Date() %> 
> > to kick out the current date as a string, but when I try to access
> > a java class
> > I've written, I get a 'cannot resolve symbol'.  The error happens
> > as the jsp is
> > being compiled.
> >
> > Here's the offending statement:
> > <%= Yada.getString() %> 
> >
> > Here's the class definition:
> > public class Yada {
> > public static String getString() {
> > return "Hello from Yada.getString()";
> > }
> > }
> >
> > The Yada.java and Yada.class file lives in the WEB-INF\classes
> directory.>
> > The WEB-INF\classes directory is in the classpath as per the
> screen dump I'm
> > getting.
> >
> > Frank
> >
> > =
>
> Hi Frank,
>
> just asking a maybe stupid question... but have you reloaded the
> exampleswebapp through the webapp-manager?
>
> regards, Jan
>
>
> ---
> --
> 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: STRUTS in Tomcat?

2003-04-04 Thread Bill Barker

"Raible, Matt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The 4.1.x version of Tomcat has an Administration app that's written using
> Struts.

This is true.  However the struts jar is packaged in admin/WEB-INF/lib, so
it isn't generally accessable to other web-apps.  There is nothing that
stops you from copying the jar file to shared/lib, where it is available to
all web-apps.

>
> > -Original Message-
> > From: Chin, Ed [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 2:29 PM
> > To: 'Tomcat Users List'
> > Subject: STRUTS in Tomcat?
> >
> >
> > Is STRUTS included in the distribution of Tomcat? That's what the
> > documentation for Struts installation leads me to believe.
> >
> > -Edward
> >
> >
> > -
> > 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: wanted: pure fast apache servlet enginge without jsp etc. + ASCII/ISO Enc. Prob.

2003-04-04 Thread Bill Barker
As I understand it, removing the "jsp" servlet and associated mappings from
conf/web.xml effectively disables all JSP support in 4.1.24.  For good
mesure, you could also remove the jasper jars from your installation (to
prevent users from being able to add JspServlet to their own web.xml).

"Peter H." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a way to configure tomcat 4.1.24 or is there a better
> alternative...
>
> Also required:
> -low memory usage
> -Not much overhead
> -just simple and pure
>
> Also I have a file.encoding problem with tomcat 4.1.24
> (Encoding should be ISO8859-1 but defaults to ASCII)
> Is there a switch in the tomcat configs or elsewhere?
>
> Greetings and Thanks
> Peter
>
>
>
>
>
>
>
> _
> MSN - More Useful Every Day  http://www.msn.de




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



Re: HttpSession not exclusive to one client. Seems to be getting mixed up. swapping over.

2003-04-04 Thread Bill Barker
This is a known problem with TC3.3.1.  See
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15894 for more details.

The fix is to use TC3.3.2-dev (aka nightly).

"David Rocks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
We have a JSP/Struts application that runs on tomcat. We developed the
system on windows and deployed on solaris.

When a user logs on to the system we store a UserValueObject on the session
so that the code knows who it is dealing with. The problem is that on
solaris the sessions attributes are not staying with that client. If i log
on it might randomly take on the session of another user logged on and get
the wrong attributes from that session. user1 turns into user2.

We have a struts action class that sets the user to the session, here is the
code.

HttpSession session = request.getSession();
UserValueObject user;
UserManagerHome userManagerHome =
remoteFactory.getUserManagerHome(); // session home bean
UserManager userManager = userManagerHome.create(); // session
bean

if (userManager.isValidUser(username, password)) {
user = userManager.getUser(username);
// Save logged-in user in the session
session.setAttribute("user", user);
}

Am i doing something wrong in the code. Should i be doing something more? It
works perfectly on windows 2000 which makes it all the more confusing. My
tomcat is 3.3.1. Is there a config option i missed?

Any help or insight would be brilliant.

David Rocks




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



RE: setting up hosts file

2003-04-04 Thread Wendell Holmes
Edit the file "hosts" in c:\winnt\system32\drivers\etc by adding the
following line:

127.0.0.1   www.domain.com


Then, http://www.domain.com/examples should be directed to localhost.  

Wendell Holmes, MCSE
Edulog Testing Dept.
xt. 3186


-Original Message-
From: Lior Shliechkorn [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:00 PM
To: Tomcat
Subject: setting up hosts file



How can I set up the hosts file so that Tomcat can pick up jsp files
directly from a call to www.domain.com? I've tried looking for documentation
about that and can not find anything. I've always had to create an
application and then a virtual directory etc. in order for Tomcat to process
jsp's. I'm running Tomcat 4.0.5 and with Win2k.

Any help would be greatly appreciated,

Thanks



-
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more


RE: ISAPI redirector

2003-04-04 Thread Januski, Ken
Does the iis_redirect.log tell you anything? 

-Original Message-
From: Rick Baker [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: ISAPI redirector


I'm running a server with the following:
Win2k
IIS5
J2sdk1.4.0
Tomcat 4.1.12
 
I successfully install Tomcat and the ISAPI redirector and test it with the
following  http://localhost/examples/servlet/HelloWorldExample
  and it works just
fine.  The redirector is working as advertised.
 
However, after rebooting the server and check that Tomcat, etc is running
the redirector no longer works.  I have to use
http://localhost:8080/examples/servlet/HelloWorldExample
  in order to run
the example.  
 
Any suggestion would be appreciated.
 
Rick Baker
GIS/Network Administrator
Salt Lake County Recorder's Office
2001 S. State St.
Suite #N1600
SLC, UT 84190

Ph: 801-468-3399
Fax: 801-468-3335
Email: [EMAIL PROTECTED] 


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



RE: Tomcat 4.1.24 error

2003-04-04 Thread HAMILTON, DALE K (SBCSI)
I got things to work by adding these ENV values

_RUNJAVA="%JAVA_HOME%\bin\java"
_RUNJAVAW="%JAVA_HOME%\bin\javaw"
_RUNJDB="%JAVA_HOME%\bin\jdb"
_RUNJAVAC="%JAVA_HOME%\bin\javac"

Seems odd never had to do this before!!!


-Original Message-
From: Wendell Holmes [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 1:17 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.24 error


I've just done an install on Windows 2000 Pro, with JDK1.4 and Tomcat
4.1.24.  I got the same errors from JasperException 'Unable to compile JSP
class file'. 

I chose to install Tomcat as an NT service during the install.  If I start
Tomcat using 'catalina.bat start' from the command line, this error doesn't
happen.  The startup scripts seem different than in past versions, setting
env variables like 'BINDIR=CLASSPATH'.  Maybe the install is using an older
startup script or something.  In any event, the work *.java files are
created from the .jsp file but are not being compiled into class files,
hence the compile error, which seems to be from environment errors.  

Wendell Holmes, MCSE
Edulog Testing Dept.
xt. 3186


-Original Message-
From: Christopher M. Zinn [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:33 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.24 error


I just ran into this problem today.  Here is how it happened to me:

Installed brand new Win2K o/os sp3
Installed Oracle 9.2 Standard on the box
Installed J2SDK1.4.1_02 on the box 
Installed Tomcat 4.1.24 on the box; set it to listen on port 7001
instead of 8080

I got that message when I tried to login

I then added (Added JAVA_HOME=c:\j2sdk1.4.1_02 to system environment
vars and %JAVA_HOME%\BIN to the path)

Still got the message

I then updated the path to put my JAVA_HOME\BIN before Oracele\JRE\BIN.

Uninstalled Tomcat 4.1.24 and re-installed and then it worked.
I guess it had something to do with Tomcat classing with Oracle's 1.3
JRE?


___
Christopher Zinn
Forge-Tech, Inc.


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 12:15 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.24 error


Howdy,
Out of curiosity: have you tried taking the compiled JSP from tomcat's
work directory and compiling it with javac yourself?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 12:12 PM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat 4.1.24 error
>
>I'm getting the same error since moving to Tomcat 4.1.24.
>I've seen the question in google searches but no answers.
>I could use help as well!!
>
>-Original Message-
>From: Robert R [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 9:37 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.24 error
>
>
>Hello everybody, can somebody help me.THe tomcat ver
>> I
>> am running is the latest 4.1.24
>>
>> And this is the page I get no matter if I just use
>> an
>> HTML page or a jsp page with perfectly good java
>> code.
>> Is it my web.xml file that is in ROOT/WEB_INF/ that
>> needs to be changed
>> Thanks Robert
>>
>>
>> HTTP Status 500 -
>>
>> type Exception report
>> message
>> description The server encountered an internal error
>> () that prevented it from fulfilling this request.
>> exception
>> org.apache.jasper.JasperException: Unable to compile
>> class for JSP
>>
>> An error occurred at line: -1 in the jsp file: null
>>
>> Generated servlet error:
>> [javac] Since fork is true, ignoring compiler
>> setting.
>> [javac] Compiling 1 source file
>> [javac] Since fork is true, ignoring compiler
>> setting.
>>
>>
>>
>>  at java.lang.Throwable.fillInStackTrace(Native
>> Method)
>>  at java.lang.Throwable.fillInStackTrace(Compiled
>> Code)
>>  at java.lang.Throwable.(Compiled Code)
>>  at java.lang.Exception.(Compiled Code)
>>  at javax.servlet.ServletException.(Compiled Code)
>>  at org.apache.jasper.JasperException.(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.Compiler.generateClass(Compiled
>> Code)
>>  at
>> org.apache.jasper.compiler.Compiler.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.JspCompilationContext.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServletWrapper.service(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.service(Compiled
>> Code)
>>  at javax.servlet.http.HttpServlet.service(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compil
e
>> d
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
>> Code)
>>  at
>>
>org.apache.

RE: STRUTS in Tomcat?

2003-04-04 Thread Raible, Matt
The 4.1.x version of Tomcat has an Administration app that's written using
Struts.

> -Original Message-
> From: Chin, Ed [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 2:29 PM
> To: 'Tomcat Users List'
> Subject: STRUTS in Tomcat?
> 
> 
> Is STRUTS included in the distribution of Tomcat? That's what the
> documentation for Struts installation leads me to believe.
> 
> -Edward
> 
> 
> -
> 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 4.1.18->4.1.24 causes standard tag to fail

2003-04-04 Thread Nikolaos Giannopoulos


> -Original Message-
> From: Jim Henderson [mailto:[EMAIL PROTECTED]
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>



> My application's .war file contains the core tag library.

I'm a Java developer (although I haven't used taglibs yet) but if the taglib
is in your war file then why are you referencing sun's site as the uri for
the tag lib.

In general, I would suggest not doing this, even if you planned it this way
as you want to always be in control of what gets deployed - assuming that I
am understanding this taglib uri parameter correctly.

As far as working in 4.1.18 and not in 4.1.24 maybe chokes on the fact that
it can't get the resource from SUN (I tried the uri and got a page not
found) but in 4.1.18 maybe it simply ignores the fact that its not there and
finds it in your war (and thus is happy).

HTH.

--Nikolaos



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



Re: does the getRequestDispatcher().forward() method returncontrol?

2003-04-04 Thread Craig R. McClanahan


On Fri, 4 Apr 2003, Velmurugan (Java Team) wrote:

> Date: Fri, 4 Apr 2003 12:05:14 +0530
> From: "Velmurugan (Java Team)" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Hans Schippers <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re:  does the getRequestDispatcher().forward() method return
> control?
>
> Hi,
>
> I think this is a bug as per the servlet specification.Just check with some
> other servlet engine. I will forward this error to tomcat developer list. I
> was tested with Tomcat3.2.2.
>
> Velmurugan P.
> Java Team.
>
> - Original Message -
> From: "Hans Schippers" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 03, 2003 1:44 AM
> Subject: does the getRequestDispatcher().forward() method return control?
>
>
> > Hi,
> >
> > if in a servlet, I have some code like:
> >
> > getServletConfig().getRequestDispatcher("/my/page.jsp").forward(request,
> > response)
> >
> > Is it supposed to return control to the servlet afterwards?
> >

A call to RequestDispatcher.forward() is just like any other Java method
-- there is no magic here.

Control is indeed returned to the line after this line once it completes.
Java doesn't have anything like a longjmp() in C, so the only other
possibility would be that the code inside the forwarded-to servlet threw
an exception -- but your code above would still have a chance to catch
that if you put it inside a try/catch block.

> > >From what I find on the net, it isn't, but when I try to print something
> > to System.out after the forward call, that works...
> >

As above, control is absolutely returned.  However, there are some
restrictions on what you can do afterwards -- in particular, you can no
longer write to the response (it is assumed that the forwarded-to servlet
took care of that already), so the only prudent thing to do is "return".

> > So did I misread on the www, or is this some bug in my webserver?
> >
> > I'm using JBoss/Tomcat btw...
> >
> > Thanks,
> >
> > Hans
> >

Craig

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



ISAPI redirector

2003-04-04 Thread Rick Baker
I'm running a server with the following:
Win2k
IIS5
J2sdk1.4.0
Tomcat 4.1.12
 
I successfully install Tomcat and the ISAPI redirector and test it with the
following  http://localhost/examples/servlet/HelloWorldExample
  and it works just
fine.  The redirector is working as advertised.
 
However, after rebooting the server and check that Tomcat, etc is running
the redirector no longer works.  I have to use
http://localhost:8080/examples/servlet/HelloWorldExample
  in order to run
the example.  
 
Any suggestion would be appreciated.
 
Rick Baker
GIS/Network Administrator
Salt Lake County Recorder's Office
2001 S. State St.
Suite #N1600
SLC, UT 84190

Ph: 801-468-3399
Fax: 801-468-3335
Email: [EMAIL PROTECTED] 



STRUTS in Tomcat?

2003-04-04 Thread Chin, Ed
Is STRUTS included in the distribution of Tomcat? That's what the
documentation for Struts installation leads me to believe.

-Edward


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



RE: includes

2003-04-04 Thread Hans Wichman
Hi,
yep sorry, the syntax was messy, but fortunately only in my example, not in 
my sourcefile ;-).
I did some more testing and it appeared it was indeed impossible to include 
files from another context (apparently in accordance with the servlet/jsp 
specification), so I think I have to solve it by putting a and b in the 
same context.

Groetjes
Hans
At 12:19 03/04/2003 -0600, Turoff, Steve wrote:
First, note that your syntax was incorrect - you put the @ in front of the %.

Second, try this:

<%@ include file="/a/myinclude.jsp" %>

Note that this is a static include, ie, if you change /a/myinclude.jsp the 
change will not show up in the file including it, unless that file is 
recompiled. Dynamic includes would use the following syntax:



More info available at: 
http://www.jspinsider.com/reference/jsp/jspincludes.html

Steve

-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 6:02 AM
To: [EMAIL PROTECTED]
Subject: includes
Hi,

in my webapps directory I have two distinct subtrees, say a/ and b/ of
which a/ is protected through tomcat's authorisation mechanism. Only now I
can't seem to include any files from subtree a in b, so for example in
b/test.jsp I have a line stating : <@% include
file="/usr/local/jakarta-tomcat-4.1.18/webapps/a/myinclude.jsp" %>
and jasper comes back with a statement: cannot find include etcetc.
Does anybody know what I am doing wrong ? Should I include the full path,
or is it because of the authorisation mechanism ?
regards,
Hans
-
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]


Tomcat 4.1.18->4.1.24 causes standard tag to fail

2003-04-04 Thread Jim Henderson

I had been running my application with Tomcat 4.1.18 (full version) and Java
1.4.1_2-b06 under Redhat Linux 8 without problems.
However, once I switched to Tomcat 4.1.24 (full version) I get the following
error first time a page is displayed:


org.apache.jasper.JasperException: /jsp/FolderPage.jsp(88,7) No such tag
import in the tag library imported with prefix c
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:94)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219
)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:705)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)


The .jsp page is as follows (parts removed):


<%@ page language="java"  contentType="text/html" %>
<%@ taglib prefix="MFnet" uri="mfnettags.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>

   
  FolderPage
  
   
   
   
   
<%= xmlFolderInfo %>

   



Anyone know what happened between 4.1.18 and 4.1.24 of Tomcat that would
cause the error?  I deployed my application in both versions the same way (I
retraced my steps twice).  The first JSP page (does not use any standard
tags) is generated OK.

My application's .war file contains the core tag library.


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



setting up hosts file

2003-04-04 Thread Lior Shliechkorn

How can I set up the hosts file so that Tomcat can pick up jsp files directly from a 
call to www.domain.com? I've tried looking for documentation about that and can not 
find anything. I've always had to create an application and then a virtual directory 
etc. in order for Tomcat to process jsp's. I'm running Tomcat 4.0.5 and with Win2k.

Any help would be greatly appreciated,

Thanks



-
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Your a live saver!  That did it!!  Just moving it into the util package solved
the problem

THanks
--- Jan Behrens <[EMAIL PROTECTED]> wrote:
> Hi Frank. just another thought...
> 
> do the following:
> 
> your class Yada:
> 
> package myYada;
> 
> public class Yada {
>   public static String getString() {
>   return "Hello from Yada.getString()";
>   }
> }
> 
> store & compile that in:
> 
> WEB-INF\classes\myYada\
> 
> add the following to your date.jsp instead of <%@ page session="false"%>
> right
> at the top:
> 
> <[EMAIL PROTECTED] contentType="text/html"
>   session="false"
>   import="myYada.*"%>
> 
> and reload the examples webapp
> 
> HTH jan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Your a live saver!  That did it!!  Just moving it into the util package solved
the problem

THanks

--- "PELOQUIN,JEFFREY (HP-Boise,ex1)" <[EMAIL PROTECTED]> wrote:
> Is you classes in a package?
> 
> such as com.frank.yada
> 
> It was my understanding from other posts I have seen on this list, that
> Tomcat will not pick up classes not in a package
> 
> -Original Message-
> From: Frank Garber [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 1:21 PM
> To: Tomcat Users List
> Subject: RE: Not seeing new classes
> 
> 
> Yes, I did a 'Reload' and a Stop/Start but neither helped.
> 
> This seems like a no brainer but the heck if I can get it to work.  Can you
> try
> doing the same on your sytem?
> 
> Thanks,
> 
> Frank
> 
> --- Jan Behrens <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, April 04, 2003 10:06 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Not seeing new classes
> > >
> > >
> > > I'm playing with the Tomcat example jsp files, specifically the
> > > date.jsp file.
> > >
> > > I can add a statement like:  <%= new java.util.Date() %> 
> > > to kick out the current date as a string, but when I try to access
> > > a java class
> > > I've written, I get a 'cannot resolve symbol'.  The error happens
> > > as the jsp is
> > > being compiled.
> > >
> > > Here's the offending statement:
> > > <%= Yada.getString() %> 
> > >
> > > Here's the class definition:
> > > public class Yada {
> > >   public static String getString() {
> > >   return "Hello from Yada.getString()";
> > >   }
> > > }
> > >
> > > The Yada.java and Yada.class file lives in the WEB-INF\classes
> directory.
> > >
> > > The WEB-INF\classes directory is in the classpath as per the screen dump
> > I'm
> > > getting.
> > >
> > > Frank
> > >
> > > =
> > 
> > Hi Frank,
> > 
> > just asking a maybe stupid question... but have you reloaded the examples
> > webapp through the webapp-manager?
> > 
> > regards, Jan
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> =
> __
> 
> My full time permanent email address is always: [EMAIL PROTECTED]
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



how speficy an exclusive context ssl

2003-04-04 Thread noel . jean-baptiste
Tomcat is configured to receive ssl-requests but dependly the 
context , i want a forced a ssl connection.
for example, i have both context in server.xml like this :

 

how to force  to be https.
Or else how to force   to be http.

thanks

 Messages d´origine 
De: "Jan Behrens" <[EMAIL PROTECTED]>
Date: vendredi 4 avril  2003 15:08
Objet: RE: Not seeing new classes

> > -Original Message-
> > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 10:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Not seeing new classes
> >
> >
> > I'm playing with the Tomcat example jsp files, specifically the
> > date.jsp file.
> >
> > I can add a statement like:  <%= new java.util.Date() %> 
> > to kick out the current date as a string, but when I try to access
> > a java class
> > I've written, I get a 'cannot resolve symbol'.  The error happens
> > as the jsp is
> > being compiled.
> >
> > Here's the offending statement:
> > <%= Yada.getString() %> 
> >
> > Here's the class definition:
> > public class Yada {
> > public static String getString() {
> > return "Hello from Yada.getString()";
> > }
> > }
> >
> > The Yada.java and Yada.class file lives in the WEB-INF\classes 
> directory.>
> > The WEB-INF\classes directory is in the classpath as per the 
> screen dump I'm
> > getting.
> >
> > Frank
> >
> > =
> 
> Hi Frank,
> 
> just asking a maybe stupid question... but have you reloaded the 
> exampleswebapp through the webapp-manager?
> 
> regards, Jan
> 
> 
> ---
> --
> 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 version number appears in header

2003-04-04 Thread Tim Odowd
I am sorry to repost, but I did not recieve any responses to my original
because I was subscribed with a different email address. 

My question is, how can I prevent the tomcat version information from
appearing in a the response header?  I am using the ajp12Connector between
IIS and tomcat.  Is there a tomcat or possibly IIS config for this?

So far, I have tried adding reportedName = " " to the http10connector, as
well as the ajp12Connector, but the line:
Servlet-Engine: Tomcat Web Server/3.3a Final ( JSP 1.1; Servlet 2.2 )
still appears in the header.

Thanks Again.  And I apologize for reposting.

Tim O'Dowd   


RE: JSPC for TOMCAT 4.124 generates unexpected "internal error"

2003-04-04 Thread Dufresne, Marc
Well, I've got just that. VMS will track every file accessed from JAVA (called file 
mapping).
When set, I can see that JSPC first looks at descendant, then ascendant directories, 
until it reaches /examples. It probes /WEB-INF, then goes on...

The fact that JSPC sets the default uriroot to ../examples, confirms it found the 
WEB-INF directory. the 
web.xml file is there:

$dir DSA1:

Directory DSA1:

classes.DIR;1   jsp.DIR;1   web.xml;1

And, when run with -uriroot explicitely defined eg

jspc "-v4 -webinc check.xml -uriroot /dsa1/apache/jakarta/tomcat/webapps/examples 
-webapp ."
JSPC runs just fine:

2003-04-04 09:01:21 - Class name is: checkresult
2003-04-04 09:01:21 - Java file name is: 
/dsa1/apache/jakarta/tomcat/webapps/examples/jsp/checkbox/checkresult.java
2003-04-04 09:01:22 - Accepted org.apache.jasper.compiler.Parser$Declaration at
/jsp/checkbox/checkresult.jsp(8,0)
2003-04-04 09:01:22 - Accepted org.apache.jasper.compiler.Parser$Bean at /jsp/ch
eckbox/checkresult.jsp(9,0)
2003-04-04 09:01:22 - Accepted org.apache.jasper.compiler.Parser$SetProperty at
/jsp/checkbox/checkresult.jsp(11,0)
...
...etc
directory listing after jspc:
Directory DSA1:

check.html;1check.xml;1 checkresult.java;1  checkresult.jsp;1
CheckTest.html;1cresult.html;1

so the plot thickens... This appears to be linked to the -uriroot switch processing
next?

Marc Dufresne 
OpenVMS Ambassador 
Pre-Sales Large Accounts 
HP France 
( : + 33.1.5762.5413
 e-mail : [EMAIL PROTECTED] < > 



-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 8:30 PM
To: Tomcat Users List
Subject: RE: JSPC for TOMCAT 4.124 generates unexpected "internal error"


Ok, well, one technique you might use to diagnose what's happening here
is to use some tool for monitoring I/O operations, like "truss" on
Solaris, or "FileMon" on Windows.  You can search for references to that
file name, and it will tell you what directories it is looking in.
Hopefully that will give you a clue to why it's not finding it in the
directory you expect.

> -Original Message-
> From: Dufresne, Marc [mailto:[EMAIL PROTECTED]
> 
> the lower case is an artefact of GNV (BASH shell for OpenVMS)
> The actuall directory name *IS* in caps
> when watching JSPC do it's file search up the tree, it does in fact
find
> the directory porperly.
> 
> next?
> 
> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> 
> Normal behavior.  You need to change "web-inf" to "WEB-INF".
> 
> > -Original Message-
> > From: Dufresne, Marc [mailto:[EMAIL PROTECTED]
> >
> > I'm doing a simple test to compile the checkbox JSP from the TOMCAT
> > examples with the -webinc switch
> > The JAVA and XML files are properly generates but jasper complains
> > (unexpectedly ) that the web.xml file is no found
> > here is  the output fragment:
> > 2003-04-04 04:21:34 - uriRoot implicitly set to
> > "/dsa1/apache/jakarta/tomcat/web
> > apps/examples"
> > 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not
found
> >
> > Check the web.xml file is really there:
> >
> > bash$ pwd
> > /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf
> > bash$ ls
> > classes  jsp  web.xml
> > bash$
> >
> > OK, spurious or normal behaviour ?

-
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: Not seeing new classes

2003-04-04 Thread Jan Behrens
Hi Frank. just another thought...

do the following:

your class Yada:

package myYada;

public class Yada {
public static String getString() {
return "Hello from Yada.getString()";
}
}

store & compile that in:

WEB-INF\classes\myYada\

add the following to your date.jsp instead of <%@ page session="false"%> right
at the top:

<[EMAIL PROTECTED] contentType="text/html"
session="false"
  import="myYada.*"%>

and reload the examples webapp

HTH jan


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



RE: Not seeing new classes

2003-04-04 Thread Vladimer Shioshvili
Frank,

you have to import the java class that you wrote  in jsp code even if the 
class is in the classes folder of the same context...





At 03:24 PM 4/4/2003, you wrote:
Brian,

Thanks for the reply.

No, I didn't have an import because I'm using the default package (that is no
package statement).
I did add your import statement below, minus the innovtech.util.*, and it had
no affect.
If you have any other thoughts, please, please let me know.  I've been
struggling with this for awhile...
Thanks,

Frank
--- Brian Menke <[EMAIL PROTECTED]> wrote:
> Does your JSP page include the right "import" declaration, something like
> this:
>
> <%@ page contentType="text/html; charset=iso-8859-1" language="java"
> import="java.sql.*,innovtech.util.*"%>
>
> Note the import attributte.
>
> -Brian
>
>
> -Original Message-
> From: Jan Behrens [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 12:09 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Not seeing new classes
>
>
> > -Original Message-
> > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 10:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Not seeing new classes
> >
> >
> > I'm playing with the Tomcat example jsp files, specifically the
> > date.jsp file.
> >
> > I can add a statement like:  <%= new java.util.Date() %> 
> > to kick out the current date as a string, but when I try to access
> > a java class
> > I've written, I get a 'cannot resolve symbol'.  The error happens
> > as the jsp is
> > being compiled.
> >
> > Here's the offending statement:
> > <%= Yada.getString() %> 
> >
> > Here's the class definition:
> > public class Yada {
> > public static String getString() {
> > return "Hello from Yada.getString()";
> > }
> > }
> >
> > The Yada.java and Yada.class file lives in the WEB-INF\classes directory.
> >
> > The WEB-INF\classes directory is in the classpath as per the screen dump
> I'm
> > getting.
> >
> > Frank
> >
> > =
>
> Hi Frank,
>
> just asking a maybe stupid question... but have you reloaded the examples
> webapp through the webapp-manager?
>
> regards, Jan
>
>
> -
> 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]
>
=
__
My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


RE: Not seeing new classes

2003-04-04 Thread Jan Behrens
Ok, just checking the sort of smallest possible prob... I assume that the
amount of code you have written is below a 100 lines so how about you post
your source here. I guess you are right and it is just a typo or something
like that. BTW, as Bryan mentioned, have you imported the class correctly?

Jan

> -Original Message-
> From: Frank Garber [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 10:21 PM
> To: Tomcat Users List
> Subject: RE: Not seeing new classes
>
>
> Yes, I did a 'Reload' and a Stop/Start but neither helped.
>
> This seems like a no brainer but the heck if I can get it to work.
> Can you try
> doing the same on your sytem?
>
> Thanks,
>
> Frank
>
> --- Jan Behrens <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, April 04, 2003 10:06 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Not seeing new classes
> > >
> > >
> > > I'm playing with the Tomcat example jsp files, specifically the
> > > date.jsp file.
> > >
> > > I can add a statement like:  <%= new java.util.Date() %> 
> > > to kick out the current date as a string, but when I try to access
> > > a java class
> > > I've written, I get a 'cannot resolve symbol'.  The error happens
> > > as the jsp is
> > > being compiled.
> > >
> > > Here's the offending statement:
> > > <%= Yada.getString() %> 
> > >
> > > Here's the class definition:
> > > public class Yada {
> > >   public static String getString() {
> > >   return "Hello from Yada.getString()";
> > >   }
> > > }
> > >
> > > The Yada.java and Yada.class file lives in the WEB-INF\classes
> directory.
> > >
> > > The WEB-INF\classes directory is in the classpath as per the screen dump
> > I'm
> > > getting.
> > >
> > > Frank
> > >
> > > =
> >
> > Hi Frank,
> >
> > just asking a maybe stupid question... but have you reloaded the examples
> > webapp through the webapp-manager?
> >
> > regards, Jan
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> =
> __
>
> My full time permanent email address is always: [EMAIL PROTECTED]
>
> __
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: Not seeing new classes

2003-04-04 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
Is you classes in a package?

such as com.frank.yada

It was my understanding from other posts I have seen on this list, that
Tomcat will not pick up classes not in a package

-Original Message-
From: Frank Garber [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 1:21 PM
To: Tomcat Users List
Subject: RE: Not seeing new classes


Yes, I did a 'Reload' and a Stop/Start but neither helped.

This seems like a no brainer but the heck if I can get it to work.  Can you
try
doing the same on your sytem?

Thanks,

Frank

--- Jan Behrens <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 10:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Not seeing new classes
> >
> >
> > I'm playing with the Tomcat example jsp files, specifically the
> > date.jsp file.
> >
> > I can add a statement like:  <%= new java.util.Date() %> 
> > to kick out the current date as a string, but when I try to access
> > a java class
> > I've written, I get a 'cannot resolve symbol'.  The error happens
> > as the jsp is
> > being compiled.
> >
> > Here's the offending statement:
> > <%= Yada.getString() %> 
> >
> > Here's the class definition:
> > public class Yada {
> > public static String getString() {
> > return "Hello from Yada.getString()";
> > }
> > }
> >
> > The Yada.java and Yada.class file lives in the WEB-INF\classes
directory.
> >
> > The WEB-INF\classes directory is in the classpath as per the screen dump
> I'm
> > getting.
> >
> > Frank
> >
> > =
> 
> Hi Frank,
> 
> just asking a maybe stupid question... but have you reloaded the examples
> webapp through the webapp-manager?
> 
> regards, Jan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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

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



RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Brian,

Thanks for the reply.

No, I didn't have an import because I'm using the default package (that is no
package statement).  

I did add your import statement below, minus the innovtech.util.*, and it had
no affect.

If you have any other thoughts, please, please let me know.  I've been
struggling with this for awhile...

Thanks,

Frank
--- Brian Menke <[EMAIL PROTECTED]> wrote:
> Does your JSP page include the right "import" declaration, something like
> this:
> 
> <%@ page contentType="text/html; charset=iso-8859-1" language="java"
> import="java.sql.*,innovtech.util.*"%>
> 
> Note the import attributte.
> 
> -Brian
> 
> 
> -Original Message-
> From: Jan Behrens [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 12:09 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Not seeing new classes
> 
> 
> > -Original Message-
> > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 10:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Not seeing new classes
> >
> >
> > I'm playing with the Tomcat example jsp files, specifically the
> > date.jsp file.
> >
> > I can add a statement like:  <%= new java.util.Date() %> 
> > to kick out the current date as a string, but when I try to access
> > a java class
> > I've written, I get a 'cannot resolve symbol'.  The error happens
> > as the jsp is
> > being compiled.
> >
> > Here's the offending statement:
> > <%= Yada.getString() %> 
> >
> > Here's the class definition:
> > public class Yada {
> > public static String getString() {
> > return "Hello from Yada.getString()";
> > }
> > }
> >
> > The Yada.java and Yada.class file lives in the WEB-INF\classes directory.
> >
> > The WEB-INF\classes directory is in the classpath as per the screen dump
> I'm
> > getting.
> >
> > Frank
> >
> > =
> 
> Hi Frank,
> 
> just asking a maybe stupid question... but have you reloaded the examples
> webapp through the webapp-manager?
> 
> regards, Jan
> 
> 
> -
> 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]
> 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: Not seeing new classes

2003-04-04 Thread Frank Garber
Yes, I did a 'Reload' and a Stop/Start but neither helped.

This seems like a no brainer but the heck if I can get it to work.  Can you try
doing the same on your sytem?

Thanks,

Frank

--- Jan Behrens <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Frank Garber [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 10:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: Not seeing new classes
> >
> >
> > I'm playing with the Tomcat example jsp files, specifically the
> > date.jsp file.
> >
> > I can add a statement like:  <%= new java.util.Date() %> 
> > to kick out the current date as a string, but when I try to access
> > a java class
> > I've written, I get a 'cannot resolve symbol'.  The error happens
> > as the jsp is
> > being compiled.
> >
> > Here's the offending statement:
> > <%= Yada.getString() %> 
> >
> > Here's the class definition:
> > public class Yada {
> > public static String getString() {
> > return "Hello from Yada.getString()";
> > }
> > }
> >
> > The Yada.java and Yada.class file lives in the WEB-INF\classes directory.
> >
> > The WEB-INF\classes directory is in the classpath as per the screen dump
> I'm
> > getting.
> >
> > Frank
> >
> > =
> 
> Hi Frank,
> 
> just asking a maybe stupid question... but have you reloaded the examples
> webapp through the webapp-manager?
> 
> regards, Jan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



Re: Basic Auth with Apache+Tomcat

2003-04-04 Thread Gary Gwin
Tim,

If you're still considering a web single sign-on solution for 
Apache/Tomcat, take a look at Cams. It's much more cost-effective than 
SunOne Identity server, and gives you quite a bit of value add over 
Apache or Tomcat security:

	http://www.cafesoft.com/

Let us know your thoughts,

Gary

Tim O'Donnell wrote:
Hi all,

I was hoping someone here could confirm a suspicion of mine, as I've been
unable to uncover a definitive answer searching other forums (web, javasoft
forum, mailing list archives).
I've setup Apache web server to perform basic auth against a webapp
directory in tomcat. I'm using the jk connector to forward certain contexts
and jsp requests to Tomcat. The authentication works as expected. However,
the REMOTE_USER (via request.getRemoteUser() method) environment variable
returns null when I try to access it from Tomcat. That variable, however, is
populated when I inspect it with the printenv cgi-script running in Apache.
Is this simply because Apache and Tomcat are two separate containers and
don't share that environment info? Or am I doing something wrong?
I suspect what I'm trying to do isn't possible, but I'd really appreciate
someone confirming this for me.
Thanks for your time,

Tim

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

Gary Gwin
http://www.cafesoft.com
*
*   *
*   The Cafesoft Access Management System, Cams, is security*
*   software that provides single sign-on authentication and*
*   centralized access control for Apache, Tomcat, and custom   *
*   resources.  *
*   *
*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Not seeing new classes

2003-04-04 Thread Brian Menke
Does your JSP page include the right "import" declaration, something like
this:

<%@ page contentType="text/html; charset=iso-8859-1" language="java"
import="java.sql.*,innovtech.util.*"%>

Note the import attributte.

-Brian


-Original Message-
From: Jan Behrens [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 12:09 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Not seeing new classes


> -Original Message-
> From: Frank Garber [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 10:06 PM
> To: [EMAIL PROTECTED]
> Subject: Not seeing new classes
>
>
> I'm playing with the Tomcat example jsp files, specifically the
> date.jsp file.
>
> I can add a statement like:  <%= new java.util.Date() %> 
> to kick out the current date as a string, but when I try to access
> a java class
> I've written, I get a 'cannot resolve symbol'.  The error happens
> as the jsp is
> being compiled.
>
> Here's the offending statement:
> <%= Yada.getString() %> 
>
> Here's the class definition:
> public class Yada {
>   public static String getString() {
>   return "Hello from Yada.getString()";
>   }
> }
>
> The Yada.java and Yada.class file lives in the WEB-INF\classes directory.
>
> The WEB-INF\classes directory is in the classpath as per the screen dump
I'm
> getting.
>
> Frank
>
> =

Hi Frank,

just asking a maybe stupid question... but have you reloaded the examples
webapp through the webapp-manager?

regards, Jan


-
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: Not seeing new classes

2003-04-04 Thread Jan Behrens
> -Original Message-
> From: Frank Garber [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 10:06 PM
> To: [EMAIL PROTECTED]
> Subject: Not seeing new classes
>
>
> I'm playing with the Tomcat example jsp files, specifically the
> date.jsp file.
>
> I can add a statement like:  <%= new java.util.Date() %> 
> to kick out the current date as a string, but when I try to access
> a java class
> I've written, I get a 'cannot resolve symbol'.  The error happens
> as the jsp is
> being compiled.
>
> Here's the offending statement:
> <%= Yada.getString() %> 
>
> Here's the class definition:
> public class Yada {
>   public static String getString() {
>   return "Hello from Yada.getString()";
>   }
> }
>
> The Yada.java and Yada.class file lives in the WEB-INF\classes directory.
>
> The WEB-INF\classes directory is in the classpath as per the screen dump I'm
> getting.
>
> Frank
>
> =

Hi Frank,

just asking a maybe stupid question... but have you reloaded the examples
webapp through the webapp-manager?

regards, Jan


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



Not seeing new classes

2003-04-04 Thread Frank Garber
I'm playing with the Tomcat example jsp files, specifically the date.jsp file.

I can add a statement like:  <%= new java.util.Date() %> 
to kick out the current date as a string, but when I try to access a java class
I've written, I get a 'cannot resolve symbol'.  The error happens as the jsp is
being compiled.

Here's the offending statement:
<%= Yada.getString() %> 

Here's the class definition:
public class Yada {
public static String getString() {
return "Hello from Yada.getString()";
}
}

The Yada.java and Yada.class file lives in the WEB-INF\classes directory.

The WEB-INF\classes directory is in the classpath as per the screen dump I'm
getting.

Frank

=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts

2003-04-04 Thread Marc Boorshtein
I think this works without mass hosting.  This won't work though with
mass hosting though.

marc

On Fri, 2003-04-04 at 12:54, Marc Boorshtein wrote:
> I tried that, but it would all ways default to the first VirtualHost.
> 
> Marc
> 
> On Fri, 2003-04-04 at 12:36, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote:
> > If you are not using ssl you may wish to consider name based virtual hosting
> > 
> > 
> > ServerName domain.com
> > 
> > 
> > 
> > ServerName domain.net
> > mod_jk stuff
> > 
> > 
> > the apache documentation goes into this more fully
> > 
> > 
> > -Original Message-
> > From: Marc Boorshtein [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 04, 2003 10:40 AM
> > To: Tomcat Users List
> > Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
> > 
> > 
> > Hello,
> > 
> > I am trying to setup tomcat running on a machine that uses mod_rewrite
> > seperate requests between two domains, domain.com and domain.net.  I
> > want to setup domain.net to integrate with tomcat, but only that
> > domain.  I am not using the  directive at all, as I only
> > have 1 IP.  Is there a straight forward way to configure mod_jk2 to use
> > just that one domain, or do I need to use some creative re-writing for
> > that as well?
> > 
> > Thanks
> > Marc Boorshtein
-- 
Marc Boorshtein <[EMAIL PROTECTED]>


signature.asc
Description: This is a digitally signed message part


RE: no localhost but 127.0.0.1:8080 works

2003-04-04 Thread Halstead, Chris
hosts.sam is a sample file...'hosts' is the important one.  It should contain a line 
like the following:

127.0.0.1   localhost

If it does not contain this line, add it.  If that line is present then the lookup of 
'localhost' _should_ work.

Given that you're on windoze, have you tried rebooting (I'm guessing you probably 
have)?

-chris


-Original Message-
From: JS [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: no localhost but 127.0.0.1:8080 works


Thank you to all those who replied to my earlier query.
Unfortunately, I'm still not having any luck.

>From the advice given, I have a "hosts.sam" file and a "hosts" (note, no
extension) in my C:\windows directory. I am using Win 98 and Tomcat 4
Is there any other reason as to why localhost:8080 would not work, my port
reference in server.xml is still 8080 as well so I see no reason for the
problems.
Thanks again


> Of course, if you use my example path for winnt below be sure to lean
> the last two name seperators to the left instead of the right...my
> fingers just have trouble with those sometimes...
>
> -chris
>
> -Original Message-
> From: Halstead, Chris
> Sent: Friday, April 04, 2003 1:25 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: no localhost but 127.0.0.1:8080 works
>
>
> If you are on Windoze NT/2000 check
> c:\winnt\system32\drivers/etc/hosts.  I think the Win9x variants use
> c:\windows\etc or c:\windows\system\etc, I don't remember which.  The
> hosts file there should have an entry for 'localhost' that maps to
> 127.0.0.1.
>
> -chris
>
> -Original Message-
> From: JS [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 1:16 PM
> To: [EMAIL PROTECTED]
> Subject: no localhost but 127.0.0.1:8080 works
>
>
> Hi Group,
> I have a problem here, my setup no longer responds to
> http://localhost:8080/blahblah.It works if I use the IP addy,
> 127.0.0.1:8080, but I think this is causing some problems within tomcat
> with its own internal references.
> Does anyone know how I can fix this. I vaguely recall reading about a
> "hosts" file in System32 folder of windows but cant remember for the
> life of me what it was talking about.
> Thanks
> JS
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




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


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



strage problem

2003-04-04 Thread Yasaswi Pulavarti
Problem:
Tomcat halts after every 90 to 120 minutes. No error messages in logs. The
webapp works perfectly when it does work.
Situation:
I have standalone tomcat 4.1.24 running on solaris 8 Sun box. JDBCRealm,
ssl, are enabled. server.xml and web.xml are perfect. The Sun box also runs
apache. The webapp makes JDBC calls to Linux DB server via vpn tunnel.

Please help!!!

Thanks,
Yasaswi




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



RE: Tomcat 4.1.24 error

2003-04-04 Thread Wendell Holmes
I've just done an install on Windows 2000 Pro, with JDK1.4 and Tomcat
4.1.24.  I got the same errors from JasperException 'Unable to compile JSP
class file'. 

I chose to install Tomcat as an NT service during the install.  If I start
Tomcat using 'catalina.bat start' from the command line, this error doesn't
happen.  The startup scripts seem different than in past versions, setting
env variables like 'BINDIR=CLASSPATH'.  Maybe the install is using an older
startup script or something.  In any event, the work *.java files are
created from the .jsp file but are not being compiled into class files,
hence the compile error, which seems to be from environment errors.  

Wendell Holmes, MCSE
Edulog Testing Dept.
xt. 3186


-Original Message-
From: Christopher M. Zinn [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:33 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.24 error


I just ran into this problem today.  Here is how it happened to me:

Installed brand new Win2K o/os sp3
Installed Oracle 9.2 Standard on the box
Installed J2SDK1.4.1_02 on the box 
Installed Tomcat 4.1.24 on the box; set it to listen on port 7001
instead of 8080

I got that message when I tried to login

I then added (Added JAVA_HOME=c:\j2sdk1.4.1_02 to system environment
vars and %JAVA_HOME%\BIN to the path)

Still got the message

I then updated the path to put my JAVA_HOME\BIN before Oracele\JRE\BIN.

Uninstalled Tomcat 4.1.24 and re-installed and then it worked.
I guess it had something to do with Tomcat classing with Oracle's 1.3
JRE?


___
Christopher Zinn
Forge-Tech, Inc.


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 12:15 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.24 error


Howdy,
Out of curiosity: have you tried taking the compiled JSP from tomcat's
work directory and compiling it with javac yourself?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 12:12 PM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat 4.1.24 error
>
>I'm getting the same error since moving to Tomcat 4.1.24.
>I've seen the question in google searches but no answers.
>I could use help as well!!
>
>-Original Message-
>From: Robert R [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 9:37 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.24 error
>
>
>Hello everybody, can somebody help me.THe tomcat ver
>> I
>> am running is the latest 4.1.24
>>
>> And this is the page I get no matter if I just use
>> an
>> HTML page or a jsp page with perfectly good java
>> code.
>> Is it my web.xml file that is in ROOT/WEB_INF/ that
>> needs to be changed
>> Thanks Robert
>>
>>
>> HTTP Status 500 -
>>
>> type Exception report
>> message
>> description The server encountered an internal error
>> () that prevented it from fulfilling this request.
>> exception
>> org.apache.jasper.JasperException: Unable to compile
>> class for JSP
>>
>> An error occurred at line: -1 in the jsp file: null
>>
>> Generated servlet error:
>> [javac] Since fork is true, ignoring compiler
>> setting.
>> [javac] Compiling 1 source file
>> [javac] Since fork is true, ignoring compiler
>> setting.
>>
>>
>>
>>  at java.lang.Throwable.fillInStackTrace(Native
>> Method)
>>  at java.lang.Throwable.fillInStackTrace(Compiled
>> Code)
>>  at java.lang.Throwable.(Compiled Code)
>>  at java.lang.Exception.(Compiled Code)
>>  at javax.servlet.ServletException.(Compiled Code)
>>  at org.apache.jasper.JasperException.(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.Compiler.generateClass(Compiled
>> Code)
>>  at
>> org.apache.jasper.compiler.Compiler.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.JspCompilationContext.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServletWrapper.service(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.service(Compiled
>> Code)
>>  at javax.servlet.http.HttpServlet.service(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compil
e
>> d
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ContainerBase.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardConte

RE: no localhost but 127.0.0.1:8080 works

2003-04-04 Thread JS
Thank you to all those who replied to my earlier query.
Unfortunately, I'm still not having any luck.

>From the advice given, I have a "hosts.sam" file and a "hosts" (note, no
extension) in my C:\windows directory. I am using Win 98 and Tomcat 4
Is there any other reason as to why localhost:8080 would not work, my port
reference in server.xml is still 8080 as well so I see no reason for the
problems.
Thanks again


> Of course, if you use my example path for winnt below be sure to lean
> the last two name seperators to the left instead of the right...my
> fingers just have trouble with those sometimes...
>
> -chris
>
> -Original Message-
> From: Halstead, Chris
> Sent: Friday, April 04, 2003 1:25 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: no localhost but 127.0.0.1:8080 works
>
>
> If you are on Windoze NT/2000 check
> c:\winnt\system32\drivers/etc/hosts.  I think the Win9x variants use
> c:\windows\etc or c:\windows\system\etc, I don't remember which.  The
> hosts file there should have an entry for 'localhost' that maps to
> 127.0.0.1.
>
> -chris
>
> -Original Message-
> From: JS [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 1:16 PM
> To: [EMAIL PROTECTED]
> Subject: no localhost but 127.0.0.1:8080 works
>
>
> Hi Group,
> I have a problem here, my setup no longer responds to
> http://localhost:8080/blahblah.It works if I use the IP addy,
> 127.0.0.1:8080, but I think this is causing some problems within tomcat
> with its own internal references.
> Does anyone know how I can fix this. I vaguely recall reading about a
> "hosts" file in System32 folder of windows but cant remember for the
> life of me what it was talking about.
> Thanks
> JS
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]




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



sendRedirect using

2003-04-04 Thread jakarta-pipon
i'd like to add some http headers, common  for all pages, so i put them
inside a headers.jsp, included with .
but by this way it does not put any http header.
the java generated file for the jsp put

// HTML // begin [file="/areas.jsp";from=(0,58);to=(1,0)]
out.write("\r\n");

// end
// HTML // begin [file="/areas.jsp";from=(1,31);to=(2,0)]
out.write("\r\n");
and after those \r\n (finnishing the http headers) begins the code for
header.jsp
so how can i append http headers for the common behavior in all jsps?



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



RE: Tomcat Heap creep

2003-04-04 Thread O'Neill, John
Thank you Yoav.  We were missing a malloc patch!!
Regards.

Howdy,
It's deviously difficult to find on Sun's site:
http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/J2SE

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: O'Neill, John [mailto:John.O'[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 12:17 PM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat Heap creep
>
>Patches...  Great idea, I'm not sure but I will check.  I'm using
>jdk1.4.1_01, could you give a list of patches or where to go to find
the
>list.  We just installed a bunch, but I would like to make sure.
>
>Thanks.
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 11:05 AM
>To: Tomcat Users List
>Subject: RE: Tomcat Heap creep
>
>
>
>Howdy,
>
>>I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep
-c
>>ESTABLISHED.  Weighing total grep -c 8009 vs grep 8009 | grep -c
>>ESTABLISHED
>>I'm getting numbers like 847 vs 542.  I'm assuming that ESTABLISHED
>should
>>not rise above maxConnections + acceptCount.  Most of the other
>connections
>>are in the SYN_SENT state.
>
>I have a few Solaris 8 servers as well, and those are the exact
commands
>I use to test these things.  I agree with your assumption as stated
>above, and have tested my apps to see that the above assumption is
true.
>So I have no clue why you're seeing strange behavior.
>
>Do you have the Solaris OS patches required for your JDK?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>***

>*
>This email may contain confidential material.
>If you were not an intended recipient,
>please notify the sender and delete all copies.
>We may monitor email to and from our network.
>
>***

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.





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



SOLVED: Re: Issuing self-signed certificates to users for SSLv3

2003-04-04 Thread johannes . fiala
Hi there,

Mark: thx for the hint, unfortunately I'm not using tomcat connector right 
now. I'll come back to you if I'm using one later.
Ramsay: thx for the useful link!

just in case anybody else needs to issue certificates using openssl:


Commandline OpenSSL for Windows

http://gnuwin32.sourceforge.net/packages/openssl.htm
(so you don't have to compile yourself)


SimpleCA/OpenSSL

http://users.skynet.be/ballet/joris/SimpleCA/

allows to create a CA, create certificates, sign them and revoke them.
keeps a log of all the actions done using openssl, so they can easily be 
entered in openssl commandline modus later.
very good for learning how openssl works (since the docs of openssl are a 
bit lousy).

cheers
Johannes





"Mark W. Webb" <[EMAIL PROTECTED]> 
04.04.2003 19:14
Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
Tomcat Users List <[EMAIL PROTECTED]>
cc

Subject
Re: Issuing self-signed certificates to users for SSLv3






openssl is what I have been using. 

PS.  If you are doing SSL using a tomcat connector, I could use some 
help.  My servlets can only get the user's certificate when I run tomcat 
in stand-alone mode.  I would like it if apache could handle the SSL, 
and pass of servlet processing to tomcat.

[EMAIL PROTECTED] wrote:

>Hi there,
>
>I know it's not absolutely tomcat-specific, but maybe another Tomcat-user 

>has come across this issue.
>
>We want to set up a Certificate Authority and issue self-signed 
>certificates to users which then will use SSLv3 client certificate 
>authentication to authenticate with Tomcat.
>
>Does anybody know an easy tool to generate certificates and package them 
>into PKCS #12 files (PFX-files, password-protected).
>
>Thanks alot
>Johannes
> 
>

-- 
Mark Webb
Software Engineer
Dolphin Technology
474 Phoenix Drive
Rome, NY  13441-4911
 
Phone : 315.838.7000 
  : 315.838.7024 
Fax   : 315.838.7096
Email : [EMAIL PROTECTED]





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




RE: no localhost but 127.0.0.1:8080 works

2003-04-04 Thread Halstead, Chris
Of course, if you use my example path for winnt below be sure to lean the last two 
name seperators
to the left instead of the right...my fingers just have trouble with those sometimes...

-chris

-Original Message-
From: Halstead, Chris 
Sent: Friday, April 04, 2003 1:25 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: no localhost but 127.0.0.1:8080 works


If you are on Windoze NT/2000 check c:\winnt\system32\drivers/etc/hosts.  I think the 
Win9x variants use c:\windows\etc or c:\windows\system\etc, I don't remember which.  
The hosts file there should have an entry for 'localhost' that maps to 127.0.0.1.

-chris

-Original Message-
From: JS [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 1:16 PM
To: [EMAIL PROTECTED]
Subject: no localhost but 127.0.0.1:8080 works


Hi Group,
I have a problem here, my setup no longer responds to
http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but 
I think this is causing
some problems within tomcat with its own internal references.
Does anyone know how I can fix this. I vaguely recall reading about a
"hosts" file in System32 folder of windows but cant remember for the life
of me what it was talking about.
Thanks
JS



-
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 4.1.24 error

2003-04-04 Thread Christopher M. Zinn
I just ran into this problem today.  Here is how it happened to me:

Installed brand new Win2K o/os sp3
Installed Oracle 9.2 Standard on the box
Installed J2SDK1.4.1_02 on the box 
Installed Tomcat 4.1.24 on the box; set it to listen on port 7001
instead of 8080

I got that message when I tried to login

I then added (Added JAVA_HOME=c:\j2sdk1.4.1_02 to system environment
vars and %JAVA_HOME%\BIN to the path)

Still got the message

I then updated the path to put my JAVA_HOME\BIN before Oracele\JRE\BIN.

Uninstalled Tomcat 4.1.24 and re-installed and then it worked.
I guess it had something to do with Tomcat classing with Oracle's 1.3
JRE?


___
Christopher Zinn
Forge-Tech, Inc.


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 12:15 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.24 error


Howdy,
Out of curiosity: have you tried taking the compiled JSP from tomcat's
work directory and compiling it with javac yourself?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 12:12 PM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat 4.1.24 error
>
>I'm getting the same error since moving to Tomcat 4.1.24.
>I've seen the question in google searches but no answers.
>I could use help as well!!
>
>-Original Message-
>From: Robert R [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 9:37 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.24 error
>
>
>Hello everybody, can somebody help me.THe tomcat ver
>> I
>> am running is the latest 4.1.24
>>
>> And this is the page I get no matter if I just use
>> an
>> HTML page or a jsp page with perfectly good java
>> code.
>> Is it my web.xml file that is in ROOT/WEB_INF/ that
>> needs to be changed
>> Thanks Robert
>>
>>
>> HTTP Status 500 -
>>
>> type Exception report
>> message
>> description The server encountered an internal error
>> () that prevented it from fulfilling this request.
>> exception
>> org.apache.jasper.JasperException: Unable to compile
>> class for JSP
>>
>> An error occurred at line: -1 in the jsp file: null
>>
>> Generated servlet error:
>> [javac] Since fork is true, ignoring compiler
>> setting.
>> [javac] Compiling 1 source file
>> [javac] Since fork is true, ignoring compiler
>> setting.
>>
>>
>>
>>  at java.lang.Throwable.fillInStackTrace(Native
>> Method)
>>  at java.lang.Throwable.fillInStackTrace(Compiled
>> Code)
>>  at java.lang.Throwable.(Compiled Code)
>>  at java.lang.Exception.(Compiled Code)
>>  at javax.servlet.ServletException.(Compiled Code)
>>  at org.apache.jasper.JasperException.(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.Compiler.generateClass(Compiled
>> Code)
>>  at
>> org.apache.jasper.compiler.Compiler.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.JspCompilationContext.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServletWrapper.service(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.service(Compiled
>> Code)
>>  at javax.servlet.http.HttpServlet.service(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compil
e
>> d
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ContainerBase.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardContextValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ContainerBase.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardContext.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardHostValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.valves.ErrorReportValve.invoke(Compiled
>> Code)
>>  at
>

Re: no localhost but 127.0.0.1:8080 works

2003-04-04 Thread G. Wade Johnson
Under Windows NT, the file was found in

   \WINNT\System32\drivers\etc

Under Windows XP, it is found in

   \WINDOWS\System32\drivers\etc

I know it is located differently on Windows 95/98 type systems.


JS wrote:
> 
> Hi Group,
> I have a problem here, my setup no longer responds to
> http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, 
> but I think this is causing
> some problems within tomcat with its own internal references.
> Does anyone know how I can fix this. I vaguely recall reading about a
> "hosts" file in System32 folder of windows but cant remember for the life
> of me what it was talking about.
> Thanks
> JS
> 
> -
> 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: JSPC for TOMCAT 4.124 generates unexpected "internal error"

2003-04-04 Thread Karr, David
Ok, well, one technique you might use to diagnose what's happening here
is to use some tool for monitoring I/O operations, like "truss" on
Solaris, or "FileMon" on Windows.  You can search for references to that
file name, and it will tell you what directories it is looking in.
Hopefully that will give you a clue to why it's not finding it in the
directory you expect.

> -Original Message-
> From: Dufresne, Marc [mailto:[EMAIL PROTECTED]
> 
> the lower case is an artefact of GNV (BASH shell for OpenVMS)
> The actuall directory name *IS* in caps
> when watching JSPC do it's file search up the tree, it does in fact
find
> the directory porperly.
> 
> next?
> 
> -Original Message-
> From: Karr, David [mailto:[EMAIL PROTECTED]
> 
> Normal behavior.  You need to change "web-inf" to "WEB-INF".
> 
> > -Original Message-
> > From: Dufresne, Marc [mailto:[EMAIL PROTECTED]
> >
> > I'm doing a simple test to compile the checkbox JSP from the TOMCAT
> > examples with the -webinc switch
> > The JAVA and XML files are properly generates but jasper complains
> > (unexpectedly ) that the web.xml file is no found
> > here is  the output fragment:
> > 2003-04-04 04:21:34 - uriRoot implicitly set to
> > "/dsa1/apache/jakarta/tomcat/web
> > apps/examples"
> > 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not
found
> >
> > Check the web.xml file is really there:
> >
> > bash$ pwd
> > /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf
> > bash$ ls
> > classes  jsp  web.xml
> > bash$
> >
> > OK, spurious or normal behaviour ?

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



RE: no localhost but 127.0.0.1:8080 works

2003-04-04 Thread Halstead, Chris
If you are on Windoze NT/2000 check c:\winnt\system32\drivers/etc/hosts.  I think the 
Win9x variants use c:\windows\etc or c:\windows\system\etc, I don't remember which.  
The hosts file there should have an entry for 'localhost' that maps to 127.0.0.1.

-chris

-Original Message-
From: JS [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 1:16 PM
To: [EMAIL PROTECTED]
Subject: no localhost but 127.0.0.1:8080 works


Hi Group,
I have a problem here, my setup no longer responds to
http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but 
I think this is causing
some problems within tomcat with its own internal references.
Does anyone know how I can fix this. I vaguely recall reading about a
"hosts" file in System32 folder of windows but cant remember for the life
of me what it was talking about.
Thanks
JS



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



no localhost but 127.0.0.1:8080 works

2003-04-04 Thread JS
Hi Group,
I have a problem here, my setup no longer responds to
http://localhost:8080/blahblah.It works if I use the IP addy, 127.0.0.1:8080, but 
I think this is causing
some problems within tomcat with its own internal references.
Does anyone know how I can fix this. I vaguely recall reading about a
"hosts" file in System32 folder of windows but cant remember for the life
of me what it was talking about.
Thanks
JS



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



RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts

2003-04-04 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
hmmm, that would usuaully mean that the domain name entered into the browser
did not match any of the domain names listed in the virtual host.  To the
best of my knowledge, www.domain.net is distinct from domain.net with
respect to apache domain name based virtual hosting.  could that have been
an issue.

there should be a Serveralias directive to specify alternative form for the
domain

-Original Message-
From: Marc Boorshtein [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 10:55 AM
To: Tomcat Users List
Subject: RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts


I tried that, but it would all ways default to the first VirtualHost.

Marc

On Fri, 2003-04-04 at 12:36, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote:
> If you are not using ssl you may wish to consider name based virtual
hosting
> 
> 
> ServerName domain.com
> 
> 
> 
> ServerName domain.net
> mod_jk stuff
> 
> 
> the apache documentation goes into this more fully
> 
> 
> -Original Message-
> From: Marc Boorshtein [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 10:40 AM
> To: Tomcat Users List
> Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
> 
> 
> Hello,
> 
> I am trying to setup tomcat running on a machine that uses mod_rewrite
> seperate requests between two domains, domain.com and domain.net.  I
> want to setup domain.net to integrate with tomcat, but only that
> domain.  I am not using the  directive at all, as I only
> have 1 IP.  Is there a straight forward way to configure mod_jk2 to use
> just that one domain, or do I need to use some creative re-writing for
> that as well?
> 
> Thanks
> Marc Boorshtein
-- 
Marc Boorshtein <[EMAIL PROTECTED]>

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



Re: mod_jk2 / Apache 2 / mod_rewrite virtual hosts

2003-04-04 Thread John Turner
One IP, multiple domains = name-based virtual hosting = Apache directive 
NameVirtualHost

No need to use mod_rewrite at all.

Then you can separate your requests however you like, since you will be 
able to use VirtualHost.

NameVirtualHost *


 ServerName domain.net
 JkUriSet 
 
 


 ServerName domain.com
 
 

John

On 04 Apr 2003 12:40:17 -0500, Marc Boorshtein <[EMAIL PROTECTED]> 
wrote:

Hello,

I am trying to setup tomcat running on a machine that uses mod_rewrite
seperate requests between two domains, domain.com and domain.net.  I
want to setup domain.net to integrate with tomcat, but only that
domain.  I am not using the  directive at all, as I only
have 1 IP.  Is there a straight forward way to configure mod_jk2 to use
just that one domain, or do I need to use some creative re-writing for
that as well?
Thanks
Marc Boorshtein


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: mod_jk2 / Apache 2 / mod_rewrite virtual hosts

2003-04-04 Thread Marc Boorshtein
I tried that, but it would all ways default to the first VirtualHost.

Marc

On Fri, 2003-04-04 at 12:36, PELOQUIN,JEFFREY (HP-Boise,ex1) wrote:
> If you are not using ssl you may wish to consider name based virtual hosting
> 
> 
> ServerName domain.com
> 
> 
> 
> ServerName domain.net
> mod_jk stuff
> 
> 
> the apache documentation goes into this more fully
> 
> 
> -Original Message-
> From: Marc Boorshtein [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 10:40 AM
> To: Tomcat Users List
> Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts
> 
> 
> Hello,
> 
> I am trying to setup tomcat running on a machine that uses mod_rewrite
> seperate requests between two domains, domain.com and domain.net.  I
> want to setup domain.net to integrate with tomcat, but only that
> domain.  I am not using the  directive at all, as I only
> have 1 IP.  Is there a straight forward way to configure mod_jk2 to use
> just that one domain, or do I need to use some creative re-writing for
> that as well?
> 
> Thanks
> Marc Boorshtein
-- 
Marc Boorshtein <[EMAIL PROTECTED]>


signature.asc
Description: This is a digitally signed message part


RE: Disabling redirect to admin

2003-04-04 Thread Jeff Tulley
On our system, we've changed the uri for admin and manager to
/tomcat/admin and /tomcat/manager, respectively.
This to me seems like a good and obvious change since /admin is way to
generic and too many things want to own that name.
The change is made in admin.xml and manager.xml, in the webapps
directory.  Since the applications themselves do not live in webapps,
and since you can rename admin.xml and manager.xml and change their
context names, this should not be a difficult fix to get it out of your
way.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 4/3/03 11:10:16 PM >>>
Yep, what you've said is definitely correct. However, right now my
problem
is that I've been put on a project which has already been made to
redirect
to http://localhost:8080/admin/adminlistcompanies.jsp. We use Action
classes
which redirect to URLs listed in a properties file. This properties
file
makes no notice of which context it is in. It doesn't matter if I put
the
whole web site in a separate context - clicking on the link will
redirect to
http://localhost:8080/admin/adminlistcompanies.jsp. 

The person who did something to overcome this has now left the
company
So, I'm in the bad position of trying to figure out how it was avoided
to
redirect to the wrong context (right now it redirects to
http:/localhost:8080/admin/login.jsp instead of
http://localhost:8080/admin/adminlistcompanies.jsp.

If you could give me some suggestions it would be most appreciated.

Thanks.



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Friday, 4 April 2003 3:53 PM
To: Tomcat Users List
Subject: Re: Disabling redirect to admin



This is the very reason why ROOT is not a good idea to use for your 
context.  If you want a default context, just add an index.html to the
ROOT 
context to redirect to the context you want people to be at.

For instance:

http://localhost:8080/ 

redirects to...

http://localhost:8080/mycontext/ 

Within "mycontext" you can have any directory hierarchy you want
without 
clashing with the namespaces of other registered contexts on the server

(such as the Tomcat "admin" context).  So, you can now have...

http://localhost:8080/mycontext/admin/ 


Use the root context for nothing other than docs and/or a redirect file
to 
the context you want to have as the default on the server.

Jake

At 03:50 PM 4/4/2003 +1000, you wrote:
>Hi,
>
>I've got a link in my web site which goes to
>http://localhost:8080/admin/adminlistcompanies.jsp. Everytime I click
on
>this link, it goes to the Tomcat web server administration tool login
page.
>
>Is there a way I can disable this so that it goes to the correct URL?
All
my
>files are in webapps/ROOT.
>
>Thanks.
>
>-
>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: mod_jk2 / Apache 2 / mod_rewrite virtual hosts

2003-04-04 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
If you are not using ssl you may wish to consider name based virtual hosting


ServerName domain.com



ServerName domain.net
mod_jk stuff


the apache documentation goes into this more fully


-Original Message-
From: Marc Boorshtein [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 10:40 AM
To: Tomcat Users List
Subject: mod_jk2 / Apache 2 / mod_rewrite virtual hosts


Hello,

I am trying to setup tomcat running on a machine that uses mod_rewrite
seperate requests between two domains, domain.com and domain.net.  I
want to setup domain.net to integrate with tomcat, but only that
domain.  I am not using the  directive at all, as I only
have 1 IP.  Is there a straight forward way to configure mod_jk2 to use
just that one domain, or do I need to use some creative re-writing for
that as well?

Thanks
Marc Boorshtein

-- 
Marc Boorshtein <[EMAIL PROTECTED]>

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



modjk2 2.0.2 RPMs

2003-04-04 Thread Alberto J. Chinique
Is anyone working on a new rpm distribution of modjk2 2.0.2, the latest
rpm available from the jakarta site is 2.0.1, and of course it would be
nice to take advantage of any bug fixes in 2.0.2.  I'd rather use an rpm
because of the ease of administration.  Thank you for any information
that you might have.

Alberto
---
Alberto J. Chinique
Network Engineer
LEROS Technologies Corporation
9990 Lee Highway
Suite 500
Fairfax, VA   22030
(703) 691-1506 x241
[EMAIL PROTECTED]





Re: Single authentication between IIS & Tomcat - My ip-based solutionokay?

2003-04-04 Thread Gary Gwin
John,

You definitely don't want to rely on an IP address, which can be 
spoofed, proxied for use with many users (as in the case of AOL), and 
change between HTTP requests with some proxy servers.

What you're looking for is a web single sign-on solution. I'm in the 
process of writing a white paper on security requirements that should be 
considered for a web single sign on solution and will send you a link to 
the document when I post it.

Gary

John Klancer wrote:
Hello 

Let me preface by saying my knowledge and experience with seurity is
primitive.
I am now working on a project wherein we have a set of ASP pages with a
custom authentication process. I have embedded a servlet into one of
these asp pages but want to avoid making the user authenticate twice
(once for the ASP pages, once again to access the servlet).
To that end, I have been doing a lot of online research, but haven't
found any pre-existing solutions (which surprises me). First question -
does anyone know of anything already out there? If I do have to create
my own solution, I was thinking of having IIS, on the user's
authentication, store the IP address of the authenticating user in a
file on the server (say %TOMCAT%\conf\auth-users.xml or something).
Then, when the user attempts to access the servlet, a custom Realm would
check to see if his/her ip is in auth-users.xml and grant/deny access
based on that.
My question is - is this feasible? Equally important, is it truly
secure?
Thanks for helping out a total security n00b.

 - John

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

Gary Gwin
http://www.cafesoft.com
*
*   *
*   The Cafesoft Access Management System, Cams, is security*
*   software that provides single sign-on authentication and*
*   centralized access control for Apache, Tomcat, and custom   *
*   resources.  *
*   *
*
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OFF-TOPIC] Re: Issuing self-signed certificates to users for SSLv3

2003-04-04 Thread Daniel Hallmark
On 4 April 2003, [EMAIL PROTECTED] wrote:

> I know it's not absolutely tomcat-specific, but maybe another Tomcat-user 
> has come across this issue.
> 
> We want to set up a Certificate Authority and issue self-signed 
> certificates to users which then will use SSLv3 client certificate 
> authentication to authenticate with Tomcat.
> 
> Does anybody know an easy tool to generate certificates and package them 
> into PKCS #12 files (PFX-files, password-protected).


You can use OpenSSL on a unix/linux box.  It has scripts all set up to
create your dummy CA certificate.  You can then use that cert to sign
SSL cert requests for your server or to generate client certificates.

Daniel

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



mod_jk2 / Apache 2 / mod_rewrite virtual hosts

2003-04-04 Thread Marc Boorshtein
Hello,

I am trying to setup tomcat running on a machine that uses mod_rewrite
seperate requests between two domains, domain.com and domain.net.  I
want to setup domain.net to integrate with tomcat, but only that
domain.  I am not using the  directive at all, as I only
have 1 IP.  Is there a straight forward way to configure mod_jk2 to use
just that one domain, or do I need to use some creative re-writing for
that as well?

Thanks
Marc Boorshtein

-- 
Marc Boorshtein <[EMAIL PROTECTED]>


signature.asc
Description: This is a digitally signed message part


Problem deploying an app

2003-04-04 Thread Frank Garber
Hi,

I'm using Tomcat (TC) 4.1.18 with Apache 2.0.43 with several virtual hosts. 
I'm able to serve up plain old jsp files okay, but when I try to reference any
of the java code I've written I get a message like:

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null

The problem is my app 'classes' directory is not in the classpath.  How do I
get TC to recognize my app?  I've used the TC manager application to install it
and it shows as being loaded.  When I stop / start TC, my app is gone!  How do
I make it persistent?  Where does the manager app keep its data?  I 'thought' I
had added it to the server.xml file.

Thanks in advance for your help,

Frank

=
__

My full time permanent email address is always: [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



Re: Issuing self-signed certificates to users for SSLv3

2003-04-04 Thread Mark W. Webb
openssl is what I have been using.  

PS.  If you are doing SSL using a tomcat connector, I could use some 
help.  My servlets can only get the user's certificate when I run tomcat 
in stand-alone mode.  I would like it if apache could handle the SSL, 
and pass of servlet processing to tomcat.

[EMAIL PROTECTED] wrote:

Hi there,

I know it's not absolutely tomcat-specific, but maybe another Tomcat-user 
has come across this issue.

We want to set up a Certificate Authority and issue self-signed 
certificates to users which then will use SSLv3 client certificate 
authentication to authenticate with Tomcat.

Does anybody know an easy tool to generate certificates and package them 
into PKCS #12 files (PFX-files, password-protected).

Thanks alot
Johannes
 

--
Mark Webb
Software Engineer
Dolphin Technology
474 Phoenix Drive
Rome, NY  13441-4911
	
Phone : 315.838.7000 
 : 315.838.7024	
Fax   : 315.838.7096
Email : [EMAIL PROTECTED]





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


RE: Tomcat Heap creep

2003-04-04 Thread Shapira, Yoav

Howdy,
It's deviously difficult to find on Sun's site:
http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/J2SE

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: O'Neill, John [mailto:John.O'[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 12:17 PM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat Heap creep
>
>Patches...  Great idea, I'm not sure but I will check.  I'm using
>jdk1.4.1_01, could you give a list of patches or where to go to find
the
>list.  We just installed a bunch, but I would like to make sure.
>
>Thanks.
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 11:05 AM
>To: Tomcat Users List
>Subject: RE: Tomcat Heap creep
>
>
>
>Howdy,
>
>>I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep
-c
>>ESTABLISHED.  Weighing total grep -c 8009 vs grep 8009 | grep -c
>>ESTABLISHED
>>I'm getting numbers like 847 vs 542.  I'm assuming that ESTABLISHED
>should
>>not rise above maxConnections + acceptCount.  Most of the other
>connections
>>are in the SYN_SENT state.
>
>I have a few Solaris 8 servers as well, and those are the exact
commands
>I use to test these things.  I agree with your assumption as stated
>above, and have tested my apps to see that the above assumption is
true.
>So I have no clue why you're seeing strange behavior.
>
>Do you have the Solaris OS patches required for your JDK?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>***

>*
>This email may contain confidential material.
>If you were not an intended recipient,
>please notify the sender and delete all copies.
>We may monitor email to and from our network.
>
>***

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: System.out.println()

2003-04-04 Thread Srinivasu Gandu
Sorry about the confusion in the question.. my intention is to find out the
variable values.. I think I got..

Thanks - srini.

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:31 AM
To: Tomcat Users List
Subject: RE: System.out.println()


Hi, 
I am not sure it's possible to understand the question but...
What kind of error are you refering to ??
If you mean exception you could do 

  exception.printStackTrace(System.out); 

To print out the stacktrace (the most usefull bit of an exception). 

But you can of course always print out the exception like this : 
 System.out.println("Exception " +  e.toString()); 
or
 System.out.println("Exception " +  e.getMessage()); 

On the other hand I recommend that you to check out log4j or some other
logging mechanism so you can direct your error logs into a file and control
what goes out there.
Hope it helps
-reynir



> -Original Message-
> From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] 
> Sent: 4. apríl 2003 16:05
> To: 'Tomcat Users List'
> Subject: System.out.println()
> 
> 
> How do we use System.out.println("error" + e) in the 
> tomcat4.1.18 to see the error messages in the console..
> 
> Thanks -Srini
> 
> -
> 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 Heap creep

2003-04-04 Thread O'Neill, John
Patches...  Great idea, I'm not sure but I will check.  I'm using
jdk1.4.1_01, could you give a list of patches or where to go to find the
list.  We just installed a bunch, but I would like to make sure.

Thanks.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 11:05 AM
To: Tomcat Users List
Subject: RE: Tomcat Heap creep



Howdy,

>I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c
>ESTABLISHED.  Weighing total grep -c 8009 vs grep 8009 | grep -c
>ESTABLISHED
>I'm getting numbers like 847 vs 542.  I'm assuming that ESTABLISHED
should
>not rise above maxConnections + acceptCount.  Most of the other
connections
>are in the SYN_SENT state.

I have a few Solaris 8 servers as well, and those are the exact commands
I use to test these things.  I agree with your assumption as stated
above, and have tested my apps to see that the above assumption is true.
So I have no clue why you're seeing strange behavior.

Do you have the Solaris OS patches required for your JDK?

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.





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



RE: Tomcat 4.1.24 error

2003-04-04 Thread Shapira, Yoav

Howdy,
Out of curiosity: have you tried taking the compiled JSP from tomcat's
work directory and compiling it with javac yourself?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: HAMILTON, DALE K (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 12:12 PM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat 4.1.24 error
>
>I'm getting the same error since moving to Tomcat 4.1.24.
>I've seen the question in google searches but no answers.
>I could use help as well!!
>
>-Original Message-
>From: Robert R [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 9:37 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.24 error
>
>
>Hello everybody, can somebody help me.THe tomcat ver
>> I
>> am running is the latest 4.1.24
>>
>> And this is the page I get no matter if I just use
>> an
>> HTML page or a jsp page with perfectly good java
>> code.
>> Is it my web.xml file that is in ROOT/WEB_INF/ that
>> needs to be changed
>> Thanks Robert
>>
>>
>> HTTP Status 500 -
>>
>> type Exception report
>> message
>> description The server encountered an internal error
>> () that prevented it from fulfilling this request.
>> exception
>> org.apache.jasper.JasperException: Unable to compile
>> class for JSP
>>
>> An error occurred at line: -1 in the jsp file: null
>>
>> Generated servlet error:
>> [javac] Since fork is true, ignoring compiler
>> setting.
>> [javac] Compiling 1 source file
>> [javac] Since fork is true, ignoring compiler
>> setting.
>>
>>
>>
>>  at java.lang.Throwable.fillInStackTrace(Native
>> Method)
>>  at java.lang.Throwable.fillInStackTrace(Compiled
>> Code)
>>  at java.lang.Throwable.(Compiled Code)
>>  at java.lang.Exception.(Compiled Code)
>>  at javax.servlet.ServletException.(Compiled Code)
>>  at org.apache.jasper.JasperException.(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.compiler.Compiler.generateClass(Compiled
>> Code)
>>  at
>> org.apache.jasper.compiler.Compiler.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.JspCompilationContext.compile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServletWrapper.service(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
>> Code)
>>  at
>>
>org.apache.jasper.servlet.JspServlet.service(Compiled
>> Code)
>>  at javax.servlet.http.HttpServlet.service(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compil
e
>> d
>> Code)
>>  at
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ContainerBase.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardContextValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ContainerBase.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardContext.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardHostValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.valves.ErrorReportValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ContainerBase.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardEngineValve.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>> nvokeNext(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.StandardPipeline.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.catalina.core.ContainerBase.invoke(Compiled
>> Code)
>>  at
>>
>org.apache.coyote.tomcat4.CoyoteAdapter.service(Compiled
>> Code)
>>  at
>>
>org.apache.coyote.http11.Http11Processor.process(Compiled
>> Code)
>>  at
>>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C

RE: Tomcat 4.1.24 error

2003-04-04 Thread HAMILTON, DALE K (SBCSI)
I'm getting the same error since moving to Tomcat 4.1.24.
I've seen the question in google searches but no answers.
I could use help as well!!

-Original Message-
From: Robert R [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 9:37 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.24 error


Hello everybody, can somebody help me.THe tomcat ver
> I
> am running is the latest 4.1.24
> 
> And this is the page I get no matter if I just use
> an
> HTML page or a jsp page with perfectly good java
> code.
> Is it my web.xml file that is in ROOT/WEB_INF/ that
> needs to be changed
> Thanks Robert
> 
> 
> HTTP Status 500 - 
>  
> type Exception report
> message 
> description The server encountered an internal error
> () that prevented it from fulfilling this request.
> exception 
> org.apache.jasper.JasperException: Unable to compile
> class for JSP
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
> [javac] Since fork is true, ignoring compiler
> setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler
> setting.
> 
> 
> 
>   at java.lang.Throwable.fillInStackTrace(Native
> Method)
>   at java.lang.Throwable.fillInStackTrace(Compiled
> Code)
>   at java.lang.Throwable.(Compiled Code)
>   at java.lang.Exception.(Compiled Code)
>   at javax.servlet.ServletException.(Compiled Code)
>   at org.apache.jasper.JasperException.(Compiled
> Code)
>   at
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled
> Code)
>   at
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled
> Code)
>   at
>
org.apache.jasper.compiler.Compiler.generateClass(Compiled
> Code)
>   at
> org.apache.jasper.compiler.Compiler.compile(Compiled
> Code)
>   at
>
org.apache.jasper.JspCompilationContext.compile(Compiled
> Code)
>   at
>
org.apache.jasper.servlet.JspServletWrapper.service(Compiled
> Code)
>   at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
> Code)
>   at
>
org.apache.jasper.servlet.JspServlet.service(Compiled
> Code)
>   at javax.servlet.http.HttpServlet.service(Compiled
> Code)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compile
> d
> Code)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardContext.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardHostValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.valves.ErrorReportValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(Compiled
> Code)
>   at
>
org.apache.coyote.http11.Http11Processor.process(Compiled
> Code)
>   at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Compiled
> Code)
>   at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled
> Code)
>   at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
> Code)
>   at java.lang.Thread.run(Thread.java:479)
>  
> Apache Tomcat/4.1.24


__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

-
To unsubscri

Re: Issuing self-signed certificates to users for SSLv3

2003-04-04 Thread Ramsay Domloge
Try BouncyCastle (www.bouncycastle.org)

R

[EMAIL PROTECTED] wrote:

Hi there,

I know it's not absolutely tomcat-specific, but maybe another Tomcat-user 
has come across this issue.

We want to set up a Certificate Authority and issue self-signed 
certificates to users which then will use SSLv3 client certificate 
authentication to authenticate with Tomcat.

Does anybody know an easy tool to generate certificates and package them 
into PKCS #12 files (PFX-files, password-protected).

Thanks alot
Johannes
 

   

   
   A R K E M E D I A   T E C H N O L O G I E S   L T D 
   
  VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG
   
 http://www.arkemedia.com  
   
mailto:[EMAIL PROTECTED]  
   
Tel : +44 1256 869 200  Fax : +44 1256 329 119 
   

   
The information in this e-mail and in any attachments is confidential and  
is intended solely for the attention and use of the named addressee(s).
   

   
If you are not the intended recipient, or a person responsible for passing 
it on to the intended recipient, you are not authorised to hold a copy of  
this information and you must therefore not disclose, copy, distribute, or 
retain this message or any part of it. MAILTO:[EMAIL PROTECTED]  
   




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


RE: Tomcat Heap creep

2003-04-04 Thread Shapira, Yoav

Howdy,

>I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c
>ESTABLISHED.  Weighing total grep -c 8009 vs grep 8009 | grep -c
>ESTABLISHED
>I'm getting numbers like 847 vs 542.  I'm assuming that ESTABLISHED
should
>not rise above maxConnections + acceptCount.  Most of the other
connections
>are in the SYN_SENT state.

I have a few Solaris 8 servers as well, and those are the exact commands
I use to test these things.  I agree with your assumption as stated
above, and have tested my apps to see that the above assumption is true.
So I have no clue why you're seeing strange behavior.

Do you have the Solaris OS patches required for your JDK?

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: [HELP] installing oracle thin driver for tomcat

2003-04-04 Thread HAMILTON, DALE K (SBCSI)
Be sure the SQLNet layer is installed on the Tomcat server.
Ensure the TNSNames.ora and sqlnet.ora are configured correctly for your
environment
Use classes12.jar for 8i and above (classes111.jar/zip) for 7

-Original Message-
From: Henning Heil [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2003 10:00 AM
To: Tomcat Users List
Subject: [HELP] installing oracle thin driver for tomcat


Hello all!

I am really stuck installing the mentioned driver (or might sth else be 
wrong?). What I have done up to date:

- downloaded ojdbc14.jar form Oracle
- copied it into tomcat/common/lib directory
- set the classpath to point to the file
- restarted all the stuff (tomcat, apache)
- I use Tomcat 4.1.18 with j2sdk1.4.1_01
- we have Oracle 8.1.7 clients running on corresponding servers I think 
(unfortunatelly don't know the version for sure but the driver should 
work anyway?)

the code I use to get connected:

try {
//  DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Class.forName("oracle.jdbc.driver.OracleDriver"); 
}
catch(ClassNotFoundException ex)
{
  out.println("JDBC-Driver not found! " + ex);
}

//   _/\_ this still works

Connection oConnection = 
DriverManager.getConnection("jdbc:oracle:thin:@dbtest:1605:abcd", 
"myuser", "mypass");

 >> crash boom bang . . . I'll attach the error-msg in the end

Can anyone more experienced see what happens?

Thanks for your help (and have a nice weekend!),

Henning



The error msg:

javax.servlet.ServletException: java/sql/Savepoint
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:471)
at org.apache.jsp.tasks$jsp._jspService(tasks$jsp.java:128)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.jsp.a_0005findex$jsp._jspService(a_0005findex$jsp.java:131)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
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
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:190)
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.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
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:468)
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

RE: Tomcat Heap creep

2003-04-04 Thread O'Neill, John
I am on Solaris 8 and have scripted a netstat -an | grep 8009 | grep -c
ESTABLISHED.  Weighing total grep -c 8009 vs grep 8009 | grep -c ESTABLISHED
I'm getting numbers like 847 vs 542.  I'm assuming that ESTABLISHED should
not rise above maxConnections + acceptCount.  Most of the other connections
are in the SYN_SENT state.

Any other tools outside of third party profilers?

- John

Howdy,

>When I netstat on the Tomcat connections, after a heavy load on the
server
>and the server is crawling, I get very large number of established
>connections, well above the number on my connector's maxProcessors and
>acceptCount.  How and why does this happen?

First of all, don't mistake dead sockets for established connections.
What is the socket state as reported by netstat?  What's your OS by the
way?

>If I suspect that my application has a memory leak (I've turned up -Xms
-
>Xms up to 1024), how can I narrow down where it is at?  Is there a way
to >get stats on the servlets and jsps?

With a profiler, e.g. OptimizeIt or JProbe, good logging, and code
inspections.  OptimizeIt will attach to tomcat 4.x out of the box.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.





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



RE: Password and session

2003-04-04 Thread Iago Toral
Thank you very much !! 

Does anybody know how can I force Tomcat to ask me for a password again when the 
session expires?
--

On Fri, 4 Apr 2003 16:26:07   
 Reynir Hübner wrote:
>Yes, 
>Not authorized has the 401 http error code.
>So you should be able to set in web.xml (either conf/web.xml or /WEB-INF/web.xml) : 
>
>   
> 401
>/welcome.jsp
>   
>
>Hope it helps
>-reynir
>
>> -Original Message-
>> From: Iago Toral [mailto:[EMAIL PROTECTED] 
>> Sent: 4. apríl 2003 16:25
>> To: [EMAIL PROTECTED]
>> Subject: Password and session
>> 
>> 
>> Hello! 
>> 
>> I'm using HTTP authentication, the first time I enter in my 
>> web application, Tomcat ask me for my login and password, but 
>> if the session expires Tomcat do not ask me for it again. 
>> Is this normal?
>> 
>> can I configure Tomcat to redirect to a specific page (for 
>> example the welcome page) if the session expires?
>> 
>> Thanks!
>> 
>> 
>> 
>> 
>> 
>> Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for 
>> $19.95/year. 
>> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lm
>tplus
>
>-
>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]
>
>



Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

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



RE: JSPC for TOMCAT 4.124 generates unexpected "internal error"

2003-04-04 Thread Dufresne, Marc
the lower case is an artefact of GNV (BASH shell for OpenVMS)
The actuall directory name *IS* in caps
when watching JSPC do it's file search up the tree, it does in fact find the directory 
porperly. 

next?

Marc Dufresne 
OpenVMS Ambassador 
Pre-Sales Large Accounts 
HP France 
( : + 33.1.5762.5413
 e-mail : [EMAIL PROTECTED] < > 



-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 6:26 PM
To: Tomcat Users List
Subject: RE: JSPC for TOMCAT 4.124 generates unexpected "internal error"


Normal behavior.  You need to change "web-inf" to "WEB-INF".

> -Original Message-
> From: Dufresne, Marc [mailto:[EMAIL PROTECTED]
> 
> I'm doing a simple test to compile the checkbox JSP from the TOMCAT
> examples with the -webinc switch
> The JAVA and XML files are properly generates but jasper complains
> (unexpectedly ) that the web.xml file is no found
> here is  the output fragment:
> 2003-04-04 04:21:34 - uriRoot implicitly set to
> "/dsa1/apache/jakarta/tomcat/web
> apps/examples"
> 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not found
> 
> Check the web.xml file is really there:
> 
> bash$ pwd
> /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf
> bash$ ls
> classes  jsp  web.xml
> bash$
> 
> OK, spurious or normal behaviour ?

-
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: error-page question...

2003-04-04 Thread Vladimer Shioshvili
well, that is a qood suggestion, but I would prefer something different - 
meaning, not having to make header static...

At 11:39 AM 4/4/2003, you wrote:

Howdy,
Quick suggestion: make the header static. ;)
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 11:33 AM
>To: Tomcat Users List
>Subject: error-page question...
>
>someone probably has asked this question before and it's not exactly
(or
>maybe it is) Tomcat question..
>
>i have a header that i am including in every page of the application,
and
>then i have an error page for errors. i want to include header in the
error
>page so it looks like a standard page.. but header itself may cause a
>problem as it's not plain html, and i would get a recursive action.
>
>any quick suggestions?
>
>thanks,
>Vlad
>
>
>
>Vladimer Shioshvili
>
>QRC Division of Macro International Inc.
>7315 Wisconsin Avenue, Suite 400W
>Bethesda, MD 20814
>
>Phone: (301) 657 3077 ext. 155
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

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

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


Single authentication between IIS & Tomcat - My ip-based solution okay?

2003-04-04 Thread John Klancer
Hello 

Let me preface by saying my knowledge and experience with seurity is
primitive.

I am now working on a project wherein we have a set of ASP pages with a
custom authentication process. I have embedded a servlet into one of
these asp pages but want to avoid making the user authenticate twice
(once for the ASP pages, once again to access the servlet).

To that end, I have been doing a lot of online research, but haven't
found any pre-existing solutions (which surprises me). First question -
does anyone know of anything already out there? If I do have to create
my own solution, I was thinking of having IIS, on the user's
authentication, store the IP address of the authenticating user in a
file on the server (say %TOMCAT%\conf\auth-users.xml or something).
Then, when the user attempts to access the servlet, a custom Realm would
check to see if his/her ip is in auth-users.xml and grant/deny access
based on that.

My question is - is this feasible? Equally important, is it truly
secure?

Thanks for helping out a total security n00b.

 - John


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



Issuing self-signed certificates to users for SSLv3

2003-04-04 Thread johannes . fiala
Hi there,

I know it's not absolutely tomcat-specific, but maybe another Tomcat-user 
has come across this issue.

We want to set up a Certificate Authority and issue self-signed 
certificates to users which then will use SSLv3 client certificate 
authentication to authenticate with Tomcat.

Does anybody know an easy tool to generate certificates and package them 
into PKCS #12 files (PFX-files, password-protected).

Thanks alot
Johannes

RE: Tomcat Heap creep

2003-04-04 Thread Shapira, Yoav

Howdy,

>When I netstat on the Tomcat connections, after a heavy load on the
server
>and the server is crawling, I get very large number of established
>connections, well above the number on my connector's maxProcessors and
>acceptCount.  How and why does this happen?

First of all, don't mistake dead sockets for established connections.
What is the socket state as reported by netstat?  What's your OS by the
way?

>If I suspect that my application has a memory leak (I've turned up -Xms
-
>Xms up to 1024), how can I narrow down where it is at?  Is there a way
to >get stats on the servlets and jsps?

With a profiler, e.g. OptimizeIt or JProbe, good logging, and code
inspections.  OptimizeIt will attach to tomcat 4.x out of the box.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



problem with make service tomcat

2003-04-04 Thread Leandro Ciampi
in my istallation j2sdk 1.4.1_02 and tomcat 3.2.3 using jk_nt_service the service non 
start :-( i have make configuration to workers.properties) no error message
tanks
leandro

mod_jk integration, local_worker, session capping/bleeding....

2003-04-04 Thread Jules Gosnell
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/jk/workershowto.html

contains the following text:

'We need a graceful shut down of a node for maintenance. The balancer in 
front asks a special port on each node periodically. If we want to 
remove a node from the cluster, we switch off this port. The 
loadbalancer can't connect to it and marks the node as down. But we 
don't move the sessions to another node. In this environment it is an 
error if the balancer sends a request without a session to an 
apache+mod_jk+tomcat which port is switched off. And if the load 
balancer determines that a node is down no other node is allowed to send 
a request without a session to it. Only requests with old sessions on 
the switched off node would be routed to this node. After some time 
nobody uses the old sessions and the sessions will time out. Then nobody 
uses this node, because all session are gone and the node is unreachable 
without a session-id in the request. If someone uses a session which 
timed out, our servlet system sends a redirect response without a 
session id to the browser. This is necessary for me, because on a 
switched off node apache and tomcat can still be up and running, but 
they are in an old state and should only be asked for valid old 
sessions. After the last session timed out, I could update the node etc. 
without killing sessions or moving them to another node. Sometimes we 
have a lot of big objects in our sessions, so it would be really time 
consuming to move them.'

My reading of this is that I can dynamically tell TC to stop accepting 
new sessions. It will notify mod_jk and thenceforth only requests 
already bound to existing sessions hosted in this TC instance will be 
forwarded from mod_jk.

I have scoured the web, mailing list archives and src code, most likely 
with the wrong keywords, trying to find references explaining, how I can 
  tell TC that I want to bleed the existing sessions off it, using this 
functionality.

I understand and use the support for session affinity via jvmRoute and 
other worker properties. I would now like to extend what I have to 
support the graceful shutdown on TC nodes without the loss of session 
data. I do not want to persist or otherwise distribute these sessions.

Can anyone point me in the right direction ?

Thanks for your time,

Jules



--

This e-mail is intended for the named addressee only.  It may contain confidential and/or privileged information.  If you have received this message in error, please let us know and then delete this message from your system.  You should not copy the message, use it for any purpose or disclose its contents to anyone.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk

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


Tomcat Heap creep

2003-04-04 Thread O'Neill, John
I'm running tomcat 4.1.18, with Apache 2.0 on a Solaris 8 box.

When I netstat on the Tomcat connections, after a heavy load on the server
and the server is crawling, I get very large number of established
connections, well above the number on my connector's maxProcessors and
acceptCount.  How and why does this happen?  



If I suspect that my application has a memory leak (I've turned up -Xms -Xms
up to 1024), how can I narrow down where it is at?  Is there a way to get
stats on the servlets and jsps?

Thanks,
John




This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.





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



RE: Listener ??

2003-04-04 Thread Shapira, Yoav

Howdy,
Implement a ServletContextListener.  Get whatever attribute you need
from the ServletContext in the listener's contextDestroyed() method.
Don't forget to register your listener in web.xml.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: awc [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 11:35 AM
>To: 'Tomcat Users List'
>Subject: Listener ??
>
>Hi All,
>
>I have poll stored in the application scope.
>It updates the poll count on copy stored on the app scope.
>I want to save the poll to the DB whenever..
>
>1. just before reloading of the application scope attribute "poll".
>  I can handle within application logic.
>
>2. whenever context destroy or reload. (well,  I will go with context
>destroy, since that has to happen first)
> can I get handle of objects on the application scope once context
>destroy is called? how??
>
>
>
>I guess I will have to some kind of Listener. Anyone had a problem like
>this before??
>
>I use struts 1.1. with tomcat 4.1.24.
>
>Thank you in advance for any replies.
>
>.anil
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: error-page question...

2003-04-04 Thread Shapira, Yoav

Howdy,
Quick suggestion: make the header static. ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 11:33 AM
>To: Tomcat Users List
>Subject: error-page question...
>
>someone probably has asked this question before and it's not exactly
(or
>maybe it is) Tomcat question..
>
>i have a header that i am including in every page of the application,
and
>then i have an error page for errors. i want to include header in the
error
>page so it looks like a standard page.. but header itself may cause a
>problem as it's not plain html, and i would get a recursive action.
>
>any quick suggestions?
>
>thanks,
>Vlad
>
>
>
>Vladimer Shioshvili
>
>QRC Division of Macro International Inc.
>7315 Wisconsin Avenue, Suite 400W
>Bethesda, MD 20814
>
>Phone: (301) 657 3077 ext. 155
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: System.out.println()

2003-04-04 Thread Reynir Hübner
Hi, 
I am not sure it's possible to understand the question but...
What kind of error are you refering to ??
If you mean exception you could do 

  exception.printStackTrace(System.out); 

To print out the stacktrace (the most usefull bit of an exception). 

But you can of course always print out the exception like this : 
 System.out.println("Exception " +  e.toString()); 
or
 System.out.println("Exception " +  e.getMessage()); 

On the other hand I recommend that you to check out log4j or some other logging 
mechanism so you can direct your error logs into a file and control what goes out 
there.
Hope it helps
-reynir



> -Original Message-
> From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] 
> Sent: 4. apríl 2003 16:05
> To: 'Tomcat Users List'
> Subject: System.out.println()
> 
> 
> How do we use System.out.println("error" + e) in the 
> tomcat4.1.18 to see the error messages in the console..
> 
> Thanks -Srini
> 
> -
> 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]



Listener ??

2003-04-04 Thread awc
Hi All,

I have poll stored in the application scope.
It updates the poll count on copy stored on the app scope.
I want to save the poll to the DB whenever..

1. just before reloading of the application scope attribute "poll".
  I can handle within application logic.

2. whenever context destroy or reload. (well,  I will go with context
destroy, since that has to happen first)
 can I get handle of objects on the application scope once context
destroy is called? how??



I guess I will have to some kind of Listener. Anyone had a problem like
this before??

I use struts 1.1. with tomcat 4.1.24.

Thank you in advance for any replies.

.anil


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



error-page question...

2003-04-04 Thread Vladimer Shioshvili
someone probably has asked this question before and it's not exactly (or 
maybe it is) Tomcat question..

i have a header that i am including in every page of the application, and 
then i have an error page for errors. i want to include header in the error 
page so it looks like a standard page.. but header itself may cause a 
problem as it's not plain html, and i would get a recursive action.

any quick suggestions?

thanks,
Vlad

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


RE: Password and session

2003-04-04 Thread Reynir Hübner
Yes, 
Not authorized has the 401 http error code.
So you should be able to set in web.xml (either conf/web.xml or /WEB-INF/web.xml) : 


  401
/welcome.jsp


Hope it helps
-reynir

> -Original Message-
> From: Iago Toral [mailto:[EMAIL PROTECTED] 
> Sent: 4. apríl 2003 16:25
> To: [EMAIL PROTECTED]
> Subject: Password and session
> 
> 
> Hello! 
> 
> I'm using HTTP authentication, the first time I enter in my 
> web application, Tomcat ask me for my login and password, but 
> if the session expires Tomcat do not ask me for it again. 
> Is this normal?
> 
> can I configure Tomcat to redirect to a specific page (for 
> example the welcome page) if the session expires?
> 
> Thanks!
> 
> 
> 
> 
> 
> Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for 
> $19.95/year. 
> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lm
tplus

-
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: JSPC for TOMCAT 4.124 generates unexpected "internal error"

2003-04-04 Thread Karr, David
Normal behavior.  You need to change "web-inf" to "WEB-INF".

> -Original Message-
> From: Dufresne, Marc [mailto:[EMAIL PROTECTED]
> 
> I'm doing a simple test to compile the checkbox JSP from the TOMCAT
> examples with the -webinc switch
> The JAVA and XML files are properly generates but jasper complains
> (unexpectedly ) that the web.xml file is no found
> here is  the output fragment:
> 2003-04-04 04:21:34 - uriRoot implicitly set to
> "/dsa1/apache/jakarta/tomcat/web
> apps/examples"
> 2003-04-04 04:21:34 - Internal Error: File /WEB-INF/web.xml not found
> 
> Check the web.xml file is really there:
> 
> bash$ pwd
> /dsa1/apache/jakarta/tomcat/webapps/examples/web-inf
> bash$ ls
> classes  jsp  web.xml
> bash$
> 
> OK, spurious or normal behaviour ?

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



Password and session

2003-04-04 Thread Iago Toral
Hello! 

I'm using HTTP authentication, the first time I enter in my web application, Tomcat 
ask me for my login and password, but if the session expires Tomcat do not ask me for 
it again. 
Is this normal?

can I configure Tomcat to redirect to a specific page (for example the welcome page) 
if the session expires?

Thanks!





Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

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



Password and session

2003-04-04 Thread Iago Toral
Hello! 

I'm using HTTP authentication, the first time I enter in my web application, Tomcat 
ask me for my login and password, but if the session expires Tomcat do not ask me for 
it again. 
Is this normal?

can I configure Tomcat to redirect to a specific page (for example the welcome page) 
if the session expires?

Thanks!





Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

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



RE: Disabling redirect to admin

2003-04-04 Thread Jacob Kjome
In that case, you should follow the suggestion of another reply to your 
question where they suggested removing the admin context.  To do this, you 
will need to remove the admin.xml file from CATALINA_HOME/webapps and 
restart Tomcat.

You will also need to be diligent about making sure that no other contexts 
under the same virtual host () have naming conflicts with sub 
directories of your ROOT context.

later,

Jake

At 04:10 PM 4/4/2003 +1000, you wrote:
Yep, what you've said is definitely correct. However, right now my problem
is that I've been put on a project which has already been made to redirect
to http://localhost:8080/admin/adminlistcompanies.jsp. We use Action classes
which redirect to URLs listed in a properties file. This properties file
makes no notice of which context it is in. It doesn't matter if I put the
whole web site in a separate context - clicking on the link will redirect to
http://localhost:8080/admin/adminlistcompanies.jsp.
The person who did something to overcome this has now left the company
So, I'm in the bad position of trying to figure out how it was avoided to
redirect to the wrong context (right now it redirects to
http:/localhost:8080/admin/login.jsp instead of
http://localhost:8080/admin/adminlistcompanies.jsp.
If you could give me some suggestions it would be most appreciated.

Thanks.



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, 4 April 2003 3:53 PM
To: Tomcat Users List
Subject: Re: Disabling redirect to admin


This is the very reason why ROOT is not a good idea to use for your
context.  If you want a default context, just add an index.html to the ROOT
context to redirect to the context you want people to be at.
For instance:

http://localhost:8080/

redirects to...

http://localhost:8080/mycontext/

Within "mycontext" you can have any directory hierarchy you want without
clashing with the namespaces of other registered contexts on the server
(such as the Tomcat "admin" context).  So, you can now have...
http://localhost:8080/mycontext/admin/

Use the root context for nothing other than docs and/or a redirect file to
the context you want to have as the default on the server.
Jake

At 03:50 PM 4/4/2003 +1000, you wrote:
>Hi,
>
>I've got a link in my web site which goes to
>http://localhost:8080/admin/adminlistcompanies.jsp. Everytime I click on
>this link, it goes to the Tomcat web server administration tool login page.
>
>Is there a way I can disable this so that it goes to the correct URL? All
my
>files are in webapps/ROOT.
>
>Thanks.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: java.io.IOException: Broken pipe

2003-04-04 Thread Shapira, Yoav

Howdy,
Coyote is the nickname (as well as the class package name) for the newer
HTTP 1.1 connector used by tomcat.  I believe this connector is
available but not the default with tomcat 4.0.6, and is the default
connector in tomcat 4.1.x.  It is faster, more robust, and more stable
than the previous HTTP 1.1 connector.

Look in your server.xml at the  elements.  Read the connector
configuration reference in the documentation.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 04, 2003 11:10 AM
>To: Tomcat Users List
>Subject: RE: java.io.IOException: Broken pipe
>
>
>Filip,
>
> What is the coyote connector and what do I need to add in
server.xml?
>Please advise.
>
>Thanks
>Narsi Kota
>Reuse Program Office
>ISS/App Dev. Center
>Freddie Mac
>Ph. (703) 918 8158
>
>
>
>
>"Filip Hanik"
><[EMAIL PROTECTED]   To: "Tomcat Users List"
><[EMAIL PROTECTED]>
>t>   cc:
> Subject: RE:
>java.io.IOException: Broken pipe
>04/04/2003
>10:54 AM
>Please respond
>to "Tomcat
>Users List"
>
>
>
>
>
>
>try the coyote connector, and see if you have any luck
>
>filip
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Friday, April 04, 2003 7:48 AM
>> To: [EMAIL PROTECTED]
>> Subject: java.io.IOException: Broken pipe
>>
>>
>> All,
>>
>>  I am receiving java.io.IOException: Broken pipe  in
Catalina_log.
>> Following are more details.
>>
>> 2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke
>> java.io.IOException: Broken pipe
>>  at java.net.SocketOutputStream.socketWrite(Native Method)
>>  at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
>>  at org.apache.ajp.Ajp13.send(Ajp13.java:525)
>>  at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
>>  at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
>>  at
>> org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.
>> java:196)
>>  at
>>
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
>>  at
>org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>>  at java.lang.Thread.run(Thread.java:484)
>>
>> 2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ...
>>
>> Any thoughts ? or Comments? Why I am getting this error.  Your
>suggestions
>> will be a great help!
>>
>> Thanks
>> Narsi Kota
>>
>>
>>
>> -
>> 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



[OFF-TOPIC] RE: XSL Stylesheet transformation in a servlet

2003-04-04 Thread Shapira, Yoav

Howdy,

>(1) When u say overide the init() method with the version with the
config
>parameter, which version is this. public void init(ServletConfig
config)
>is the only signiature I can find.

Then you're looking at an old version of the JavaDoc.  You should
override
public void init() throws ServletException

>(3) xOutputter.output(doc, System.out); Do you get
>any output to System.out? This does come, it was the xmlfile that was
in
>my original mail, again, it also went to catalina.out.

OK, good.  It's important to verify the results of your database query
before trying to process them further, especially if further processing
includes an expensive operation like XSLT.

>Does the WEB-INF
>ile have to be capatilised. I actually have it on my system as
>"Web-inf".

I've only ever seen it as capitalized.  Capitalize it to be safe.  It is
definitely case-sensitive.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: java.io.IOException: Broken pipe

2003-04-04 Thread narsi_kota

Filip,

 What is the coyote connector and what do I need to add in server.xml?
Please advise.

Thanks
Narsi Kota
Reuse Program Office
ISS/App Dev. Center
Freddie Mac
Ph. (703) 918 8158



   
  
"Filip Hanik"  
  
<[EMAIL PROTECTED]   To: "Tomcat Users List" <[EMAIL 
PROTECTED]>
t>   cc:   
  
 Subject: RE: java.io.IOException: Broken 
pipe   
04/04/2003 
  
10:54 AM   
  
Please respond 
  
to "Tomcat 
  
Users List"
  
   
  
   
  




try the coyote connector, and see if you have any luck

filip

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 7:48 AM
> To: [EMAIL PROTECTED]
> Subject: java.io.IOException: Broken pipe
>
>
> All,
>
>  I am receiving java.io.IOException: Broken pipe  in Catalina_log.
> Following are more details.
>
> 2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke
> java.io.IOException: Broken pipe
>  at java.net.SocketOutputStream.socketWrite(Native Method)
>  at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
>  at org.apache.ajp.Ajp13.send(Ajp13.java:525)
>  at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
>  at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
>  at
> org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.
> java:196)
>  at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
>  at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>  at java.lang.Thread.run(Thread.java:484)
>
> 2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ...
>
> Any thoughts ? or Comments? Why I am getting this error.  Your
suggestions
> will be a great help!
>
> Thanks
> Narsi Kota
>
>
>
> -
> 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]



Tomcat 4.1.24 error

2003-04-04 Thread Robert R
Hello everybody, can somebody help me.THe tomcat ver
> I
> am running is the latest 4.1.24
> 
> And this is the page I get no matter if I just use
> an
> HTML page or a jsp page with perfectly good java
> code.
> Is it my web.xml file that is in ROOT/WEB_INF/ that
> needs to be changed
> Thanks Robert
> 
> 
> HTTP Status 500 - 
>  
> type Exception report
> message 
> description The server encountered an internal error
> () that prevented it from fulfilling this request.
> exception 
> org.apache.jasper.JasperException: Unable to compile
> class for JSP
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
> [javac] Since fork is true, ignoring compiler
> setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler
> setting.
> 
> 
> 
>   at java.lang.Throwable.fillInStackTrace(Native
> Method)
>   at java.lang.Throwable.fillInStackTrace(Compiled
> Code)
>   at java.lang.Throwable.(Compiled Code)
>   at java.lang.Exception.(Compiled Code)
>   at javax.servlet.ServletException.(Compiled Code)
>   at org.apache.jasper.JasperException.(Compiled
> Code)
>   at
>
org.apache.jasper.compiler.DefaultErrorHandler.javacError(Compiled
> Code)
>   at
>
org.apache.jasper.compiler.ErrorDispatcher.javacError(Compiled
> Code)
>   at
>
org.apache.jasper.compiler.Compiler.generateClass(Compiled
> Code)
>   at
> org.apache.jasper.compiler.Compiler.compile(Compiled
> Code)
>   at
>
org.apache.jasper.JspCompilationContext.compile(Compiled
> Code)
>   at
>
org.apache.jasper.servlet.JspServletWrapper.service(Compiled
> Code)
>   at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
> Code)
>   at
>
org.apache.jasper.servlet.JspServlet.service(Compiled
> Code)
>   at javax.servlet.http.HttpServlet.service(Compiled
> Code)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Compile
> d
> Code)
>   at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardContext.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardHostValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.valves.ErrorReportValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(Compiled
> Code)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(Compiled
> Code)
>   at
>
org.apache.catalina.core.ContainerBase.invoke(Compiled
> Code)
>   at
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(Compiled
> Code)
>   at
>
org.apache.coyote.http11.Http11Processor.process(Compiled
> Code)
>   at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Compiled
> Code)
>   at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled
> Code)
>   at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled
> Code)
>   at java.lang.Thread.run(Thread.java:479)
>  
> Apache Tomcat/4.1.24


__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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



tomcat version number appears in header

2003-04-04 Thread Tim Odowd
Hi.

The problem I am trying to solve is that the tomcat version number apears in
the header of pages served by tomcat:

HTTP/1.1 301 Moved
Date: Fri, 04 Apr 2003 14:55:47 GMT
Content-Type: text/html
Location: my url
Content-Length: 206
Servlet-Engine: Tomcat Web Server/3.3a Final ( JSP 1.1; Servlet 2.2 )

I have set the reportedname attribute in the Http10Connector in my
server.xml file :



As far as I can tell, there are no additional configuration files being
used, and I have restarted the tomcat service (several times), while
experimenting with modfiying and removing several tags in the server.xml
file, but the version # continues to appear.

Any suggestions?

Thanks in advance,
Tim O'Dowd 


System.out.println()

2003-04-04 Thread Srinivasu Gandu
How do we use System.out.println("error" + e) in the tomcat4.1.18 to see the
error messages in the console..

Thanks -Srini

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



Posting Resumes

2003-04-04 Thread kal inuganti

Hi,

I am creating a sample struts application using Tomcat in which a user can copy/paste 
a resume from microsoft word and post it. I noticed that a couple of characters from 
word are being transformed into other characters in my servlet/action class. I was 
wondering if anybody else has had such an experience.

Example ‘Sun Certified Java Programmer’  is being transformed to ?Sun Certified Java 
Programmer?

Also, if anybody knows of a workaround/webserver setting changes, please let me know. 
Thanks!



-
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

RE: XSL Stylesheet transformation in a servlet

2003-04-04 Thread JS
Hi Yoav,
Much appreciated for your analysis. Many thanks.
I have a few questions.
(1) When u say overide the init() method with the version with the config
parameter, which version is this. public void init(ServletConfig config)
is the only signiature I can find.(2)All the System.out.println commands
in my servlet go to catalina.out in the logs directory. I dont actualy
have a console output.(3) xOutputter.output(doc, System.out); Do you get
any output to System.out? This does come, it was the xmlfile that was in
my original mail, again, it also went to catalina.out. Does the WEB-INF
ile have to be capatilised. I actually have it on my system as
"Web-inf".(4)Correct!, TransformerConfigurationException is the root
cause. The only refernece to my program in the stack trace is "at
JDOMServlet.init(JDOMServlet.java:35)" which is the line I highlighted
below.>
> Howdy,
>
>>Not sure if anyone can help me with this here, but worth a shot.
>
> This sort of thing should be marked as [OFF-TOPIC] in the subject if
> you're going to post if to the list at all.
>
>>public void init(ServletConfig config) throws ServletException
> {
>
> Override the init() method, the version with the config parameter,
> instead of this version.
>
>>xsltSource = new
>>StreamSource(context.getResourceAsStream("/Web-
>>Inf/viewStudentDetails.xsl"));//---I think this is the problem
> line, it
>>is LINE 35 --//
>
> Print out what getResourceAsStream() produces.  Make WEB-INF
> capitalized in the argument, as this is case sensitive.
>
>>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>
> Yikes ;)  I dislike JdbcOdbc bridges but we'll leave that for now.
>
>>ResultSetBuilder(rs);
>
> Print out the result set contents just to verify them.
>
>>xOutputter.output(doc, System.out);
>
> Do you get any output to System.out?
>
>>java.net.MalformedURLException
>>at java.net.URL.(URL.java:613)
>>at java.net.URL.(URL.java:476)
>>at java.net.URL.(URL.java:425)
>
> But the root causes was a TransformerConfigurationException it appears,
> from the bottom of your output, right?
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
>
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
>
>
> -
> 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: Test Application with out restart Tomcat

2003-04-04 Thread Srinivasu Gandu
Thanks Michael it works!

-Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 8:24 PM
To: 'Tomcat Users List'
Subject: RE: Test Application with out restart Tomcat


I believe there is an attribute call 'reloadable' for the  element
in server.xml.  Set it to true for your webapp context and the webapp's
servlets will reload when there are changes to them.

Regards,
Michael

-Original Message-
From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 4:37 PM
To: 'Tomcat Users List'
Subject: Test Application with out restart Tomcat


What needs to be done if don't have to restart the server every time we make
change to the servlet.

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



[HELP] installing oracle thin driver for tomcat

2003-04-04 Thread Henning Heil
Hello all!

I am really stuck installing the mentioned driver (or might sth else be 
wrong?). What I have done up to date:

- downloaded ojdbc14.jar form Oracle
- copied it into tomcat/common/lib directory
- set the classpath to point to the file
- restarted all the stuff (tomcat, apache)
- I use Tomcat 4.1.18 with j2sdk1.4.1_01
- we have Oracle 8.1.7 clients running on corresponding servers I think 
(unfortunatelly don't know the version for sure but the driver should 
work anyway?)

the code I use to get connected:

try {
//  DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
   Class.forName("oracle.jdbc.driver.OracleDriver"); 
}
catch(ClassNotFoundException ex)
{
 out.println("JDBC-Driver not found! " + ex);
}

//   _/\_ this still works

Connection oConnection = 
DriverManager.getConnection("jdbc:oracle:thin:@dbtest:1605:abcd", 
"myuser", "mypass");

>> crash boom bang . . . I'll attach the error-msg in the end

Can anyone more experienced see what happens?

Thanks for your help (and have a nice weekend!),

Henning



The error msg:

javax.servlet.ServletException: java/sql/Savepoint
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.tasks$jsp._jspService(tasks$jsp.java:128)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
at org.apache.jsp.a_0005findex$jsp._jspService(a_0005findex$jsp.java:131)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.

RE: java.io.IOException: Broken pipe

2003-04-04 Thread Filip Hanik
try the coyote connector, and see if you have any luck

filip

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 7:48 AM
> To: [EMAIL PROTECTED]
> Subject: java.io.IOException: Broken pipe
>
>
> All,
>
>  I am receiving java.io.IOException: Broken pipe  in Catalina_log.
> Following are more details.
>
> 2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke
> java.io.IOException: Broken pipe
>  at java.net.SocketOutputStream.socketWrite(Native Method)
>  at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
>  at org.apache.ajp.Ajp13.send(Ajp13.java:525)
>  at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
>  at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
>  at
> org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.
> java:196)
>  at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
>  at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>  at java.lang.Thread.run(Thread.java:484)
>
> 2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ...
>
> Any thoughts ? or Comments? Why I am getting this error.  Your suggestions
> will be a great help!
>
> Thanks
> Narsi Kota
>
>
>
> -
> 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 4.1 + Apache 2 + mod_jk2 inprocess woes

2003-04-04 Thread Rob Shortt
Ken, have you read this thread?

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

I have been having similar problems.  I changed my MPM module in apache 
but am having other problems now.  What OS are you running tomcat and 
apache on?

-Rob

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


java.io.IOException: Broken pipe

2003-04-04 Thread narsi_kota
All,

 I am receiving java.io.IOException: Broken pipe  in Catalina_log.
Following are more details.

2003-04-04 09:23:08 Ajp13Processor[13041][33] process: invoke
java.io.IOException: Broken pipe
 at java.net.SocketOutputStream.socketWrite(Native Method)
 at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
 at org.apache.ajp.Ajp13.send(Ajp13.java:525)
 at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
 at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
 at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
 at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
 at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:484)

2003-04-04 09:23:08 Ajp13Processor[13041][33] recyling objects ...

Any thoughts ? or Comments? Why I am getting this error.  Your suggestions
will be a great help!

Thanks
Narsi Kota



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



  1   2   >