CLASSPATH setting in Windows with JDBC from mySQL

2003-06-05 Thread Joe
Hi all,  does anyone know how I should set the Class Path Variable in
Windows in order for JSP to search for the library?
 
I've already tried the following methods but it cannot find the driver
when I tried to load an jsp page:
 
Method 1
I've currently install the JDBC driver on my C:\mysql\JDBC\
And have tried setting my classpath to point to that folder as below
 
Set CLASSPATH=C:\mysql\JDBC\;.
 
Method 2
Copied mysql-connector-java-3.0.8-stable-bin.jar to
C:\j2sdk1.4.1_02\common\lib
And simply set my classpath=.
 
Method 3
Copied mysql-connector-java-3.0.8-stable-bin.jar to
C:\j2sdk1.4.1_02\jre\lib
And again set my classpath=.
 
I've also tried setting my classpath to point specifically to the JDBC
driver but still, the page cannot find the driver.
 
 
The only method that works now is that I've copied
mysql-connector-java-3.0.8-stable-bin.jar to my
/webapps/testAPPS/WEB-INF/lib
 
Using this method, which means I have a copy of
mysql-connector-java-3.0.8-stable-bin.jar in every docBase that I have
which I find is redundant. Is there any working solution that I can
simply set in using my CLASSPATH? Also, I have no problem setting it in
CLASSPATH in Linux but I dunno why it doesn't work in Windows. :-( Now
that is reason why I preferred Linux.
 
Regards,
Joe
 
 
 
 
 
 
 
 
 
I've tried a lot of combination and have copy
mysql-connector-java-3.0.8-stable-bin.jar to 


log4j not working

2003-06-05 Thread harm
Hi all,

I'm trying to use the Log4J package in my webapplication. 
Therefore I placed the file log4j.properties in WEB-INF/classes which 
looks like this:

log4j.rootLogger = DEBUG, stdout, rolling
log4j.appender.stdout = ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=/var/ordermanager/log/ordermanager.log
log4j.appender.rolling.MaxFileSize=100KB
log4j.appender.rolling.MaxBackupIndex=1
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{ABSOLUTE} - %p %c - 
%m%n


I also have a file commons-logging.properties which contains:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JCategoryLog

(B.t.w. I also tried to remove this file (commons-logging.properties) 
which has affect).


In my Actions I have code like this:

Log log = LogFactory.getLog(BasicAction.class);
 
if (log.isInfoEnabled()) {
log.info(Log test!);
}

I'm using JBoss with integrated Tomcat 4.1 (on linux). In the JBoss log I 
see:

09:51:52,853 INFO  [OrdermanagerBaseAction] OrderManagerBaseAction called!

But, nothing appears in /var/ordermanager/log/ordermanager.log

Permissions, etc are all okay

What could be wrong here?

Many thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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



RE: CLASSPATH setting in Windows with JDBC from mySQL

2003-06-05 Thread Tom Lyle
If you put the jar file in {tomcat directory}\common\lib it will be
available to all your web apps. Theres no need to play around with your
CLASSPATH variable.

Tom

 -Original Message-
 From: Joe [mailto:[EMAIL PROTECTED]
 Sent: 05 June 2003 08:43
 To: [EMAIL PROTECTED]
 Subject: CLASSPATH setting in Windows with JDBC from mySQL


 Hi all,  does anyone know how I should set the Class Path Variable in
 Windows in order for JSP to search for the library?

 I've already tried the following methods but it cannot find the driver
 when I tried to load an jsp page:

 Method 1
 I've currently install the JDBC driver on my C:\mysql\JDBC\
 And have tried setting my classpath to point to that folder as below

 Set CLASSPATH=C:\mysql\JDBC\;.

 Method 2
 Copied mysql-connector-java-3.0.8-stable-bin.jar to
 C:\j2sdk1.4.1_02\common\lib
 And simply set my classpath=.

 Method 3
 Copied mysql-connector-java-3.0.8-stable-bin.jar to
 C:\j2sdk1.4.1_02\jre\lib
 And again set my classpath=.

 I've also tried setting my classpath to point specifically to the JDBC
 driver but still, the page cannot find the driver.


 The only method that works now is that I've copied
 mysql-connector-java-3.0.8-stable-bin.jar to my
 /webapps/testAPPS/WEB-INF/lib

 Using this method, which means I have a copy of
 mysql-connector-java-3.0.8-stable-bin.jar in every docBase that I have
 which I find is redundant. Is there any working solution that I can
 simply set in using my CLASSPATH? Also, I have no problem setting it in
 CLASSPATH in Linux but I dunno why it doesn't work in Windows. :-( Now
 that is reason why I preferred Linux.

 Regards,
 Joe









 I've tried a lot of combination and have copy
 mysql-connector-java-3.0.8-stable-bin.jar to



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



RE: Different shutdown behavior of httpConnector in TC403 (graceful) and TC406 (reckless)

2003-06-05 Thread Ralph Einfeldt
I think that the waay of TC406 is better. This way you can 
have both solutions.

If you have threads that do something important that has 
to be finished before termination, just don't define them 
as daemon threads.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 12:07 PM
 To: [EMAIL PROTECTED]
 Subject: Different shutdown behavior of httpConnector in TC403
 (graceful) and TC406 (reckless)
 
snip/
 It seems to that -  while TC 403 waits gracefully for the 
 work on a request to
 be finished (even forever) - TC 406 will wait 5 secs only and 
 then shutdown without
 any respect to the work done in the processors background threads.
 
snip/
 
 So, my primary question is this one: Did I overlook a point, 
 in particular: Is there a way to configure the shutdown behavior 
 in TC 406 top wait for the background threads to finish?
 

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



security of server.xml

2003-06-05 Thread Mohamed Tagari
Hi,

Is there any way of taking the password and username for connecting to a 
database out of the server.xml, and placing it in code before the lookup 
is done on this?? As having the username and password as plain text is not 
very secure..

// java code
Context init = new InitialContext();
Context ctx = (Context) init.lookup(java:comp/env);
DataSource ds = (DataSource) ctx.lookup(jdbc/myoracle);



// extract from server.xml
Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource/ 

ResourceParams name=jdbc/myoracle
.
.
.
  parameter
nameusername/name
valuescott/value
  /parameter
  parameter
namepassword/name
valuetiger/value
  /parameter
.
.
/ResourceParams

mo


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



Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread Graham Reeds
I dunno if this is the correct mailing since I have only just joined, but...

I am using Tomcat 4.1.24, the JDK 1.3.1.08.  Unfortunately I can't change
the version numbers since our client is using this version.

I am new to Java and currently feeling my way round JSP Tags and the found
what I believe is a bug.  I have a very simple tag called name in my tld xml
file.

Ergo the getter and setter code is: getName() and setName();

Change the tag name to pageTitle you'd expect the getter and setter to be
getPageTitle() and setPageTitle().  This compiles fine but running it in my
browser (IE6) causes an 'org.apache.jasper.JasperException' to fire.  Change
the getter and setter to getpageTitle(), etc. and it works fine.

I would of assumed that it changed 'name' to a capital it would
automatically change the first letter of 'pageTitle' to capitals.  Is this
standard behaviour?

--

Graham Reeds,
[EMAIL PROTECTED] | http://omnieng.co.uk




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



Solved

2003-06-05 Thread Rohit Peyyeti
Hello:

I was finally able to link Apache 1.3 with tomcat 4.1! 
Problem looks to be with mod_jk version which I was 
running (which I think is about 4 to 5 months old). This 
mod_jk works (and still works) very fine with tomcat 3.2 
and apache 1.3 version on one of my other machines.

It somehow refused to work with tomcat 4.1 version. I 
downloaded latest mod_jk from jakarta site and it simply 
ran in the first go! 

Thanks John for all the help which you have done so far! 
And also, one final question: Can I setup one manager context
for managing all the hosts defined in server.xml?

Thanks again!

Rohit

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



Re: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread Dominic Parry
What is the page Title? could you give the whole error output?
  - Original Message - 
  From: Graham Reeds 
  To: Tomcat Users List 
  Sent: Thursday, June 05, 2003 11:55 AM
  Subject: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags


  I dunno if this is the correct mailing since I have only just joined, but...

  I am using Tomcat 4.1.24, the JDK 1.3.1.08.  Unfortunately I can't change
  the version numbers since our client is using this version.

  I am new to Java and currently feeling my way round JSP Tags and the found
  what I believe is a bug.  I have a very simple tag called name in my tld xml
  file.

  Ergo the getter and setter code is: getName() and setName();

  Change the tag name to pageTitle you'd expect the getter and setter to be
  getPageTitle() and setPageTitle().  This compiles fine but running it in my
  browser (IE6) causes an 'org.apache.jasper.JasperException' to fire.  Change
  the getter and setter to getpageTitle(), etc. and it works fine.

  I would of assumed that it changed 'name' to a capital it would
  automatically change the first letter of 'pageTitle' to capitals.  Is this
  standard behaviour?

  --

  Graham Reeds,
  [EMAIL PROTECTED] | http://omnieng.co.uk




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



Java Bean Question

2003-06-05 Thread Joe
Hi people, i have some confusion with Java Bean Search Path. When i
created a bean and put into my /Webapps/test/WEB-INF/classes/bean.class

and use it by 
jsp:useBean id=beanid class=bean /

i won't be able to retrieve it. It will return a

===
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.
[javac] C:\Tomcat\work\Standalone\localhost\joeWEB\jsp\Test_jsp.java:48:
cannot resolve symbol
[javac] symbol : class sqlBean 
[javac] location: class org.apache.jsp.Test_jsp
[javac] sqlBean sql = null;
[javac] ^

i guess the system is unable to find this particular bean.However, if i
were to package the bean say into Package pack.bean;

and place this bean file in /Webapps/WEB-INF/classes/pack/bean.class
I AM ABLE TO CALL IT.

My question is, where is the default path tomcat will search for the the
bean w/o package name? I thought it should be inside
/Webapps/myWeb/WEB-INF/classes/ ?

Regards,
Joe



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



Re: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread Graham Reeds
Okay this the relevant section of my taglib.tld file:

tag
nameheader/name
tagclasstagext.HeadTag/tagclass
bodycontentJSP/bodycontent
infoSimple Example/info
attribute
namepageTitle/name
requiredtrue/required
rtexprvaluetrue/rtexprvalue
/attribute
/tag

the use of the tag in my jsp file:
siteTags:header pageTitle=Server Administration /

the getter and setter code:

String pageTitle;
// getter
//public String getPageTitle()
public String getpageTitle()
{
return pageTitle;
}

// setter
//public void setPageTitle(String pageTitle)
public void setpageTitle(String pageTitle)
{
this.pageTitle = pageTitle;
return;
}

The error that it produces (cropped for berevity).  If you would like the
code then I can email you it - I wouldn't want to post the entirety to the
list:

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
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
  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:256)
  at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

--

Graham Reeds,
[EMAIL PROTECTED] | http://omnieng.co.uk


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



RE: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread James Lewis
Umm, you'll have to post the whole exception, as the JasperException is
wrapping the underlying one. (especially the root cause bit).
Cheers,

james

 -Original Message-
 From: Graham Reeds [mailto:[EMAIL PROTECTED]
 Sent: 05 June 2003 11:49
 To: Tomcat Users List
 Subject: Re: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags


 Okay this the relevant section of my taglib.tld file:

 tag
 nameheader/name
 tagclasstagext.HeadTag/tagclass
 bodycontentJSP/bodycontent
 infoSimple Example/info
 attribute
 namepageTitle/name
 requiredtrue/required
 rtexprvaluetrue/rtexprvalue
 /attribute
 /tag

 the use of the tag in my jsp file:
 siteTags:header pageTitle=Server Administration /

 the getter and setter code:

 String pageTitle;
 // getter
 //public String getPageTitle()
 public String getpageTitle()
 {
 return pageTitle;
 }

 // setter
 //public void setPageTitle(String pageTitle)
 public void setpageTitle(String pageTitle)
 {
 this.pageTitle = pageTitle;
 return;
 }

 The error that it produces (cropped for berevity).  If you would like the
 code then I can email you it - I wouldn't want to post the entirety to the
 list:

 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
   at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:2
 54)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
 pplication
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.ja
 va:256)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)

 --

 Graham Reeds,
 [EMAIL PROTECTED] | http://omnieng.co.uk


 -
 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 bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread Graham Reeds
Okay the entire fault (enjoy) :

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
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 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:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:494)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
 at java.lang.Thread.run(Thread.java:479)

root cause
javax.servlet.ServletException
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:536)
 at org.apache.jsp.login_jsp._jspService(login_jsp.java:90)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 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:256)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:494)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at 

Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Abid Ali Teepo
Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

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



Re: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread Graham Reeds
 
  root cause
  javax.servlet.ServletException
   at
  org.apache.jasper.runtime.PageContextImpl.handlePageException(Page
  ContextImp
  l.java:536)
   at org.apache.jsp.login_jsp._jspService(login_jsp.java:90)

 What's your page doing at line 90 of the generated servlet login_jsp.java?

 This can be found in the work directory

86:} catch (Throwable t) {
87:  out = _jspx_out;
88:  if (out != null  out.getBufferSize() != 0)
89:out.clearBuffer();
90:  if (pageContext != null) pageContext.handlePageException(t);
91:} finally {
92:  if (_jspxFactory != null)
_jspxFactory.releasePageContext(pageContext);
93:}
94:  }

At line 103 though I spotted this:
103:_jspx_th_siteTags_header_0.setpageTitle(Server Administration);

which is trying to access the setpageTitle() and not setPageTitle(), which
brings me back to the point is this standard practice?  I have semi-reliable
information to the contary; apparently other JSP engines use the
setPageTitle() method.

--

Graham Reeds,
[EMAIL PROTECTED] | http://omnieng.co.uk


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



Tomcat 3.2.2 and SSL

2003-06-05 Thread Rajarathinam PARTHASARTHY
Hi ,

 We are using tomcat 3.2.2.
 Now we want to setup SSL for tomcat3.2.2

 I have created the keys and set the following in the server.xml



Connector className=org.apache.tomcat.service.PoolTcpConnector 
 
Parameter name=handler 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port value=8443/  
 
Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory /  
 
Parameter name=keystore value=d:\tomcat3.2.2\conf\keystore\.keystore /   
 
Parameter name=keypass value=gemplus13/  
 
/Connector   
 

=

Now I can start the webserver and servers are listening in 8080 and 8443 ports.

But when I give https://localhost:8080, I don't get anything.
The status bar in the Internet Explorer browser shows as opening page at 
https://localhost:8080

Please help me to setup the SSL.

Thanks,
Parthasarthy.

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



Shutdown problem

2003-06-05 Thread Therese Hermansson

I have a problem with tomcat 3.3.1a installed in a Solaris environment.
When I use the shutdown.sh-script the java process is left alive. This
happens if I have two instances of the same webapplication installed in
the webapps-directory(with different names). If I remove one of the
webapplications the java process is shut down properly. The following
lines are written to stderr when I run the shutdown.sh-script.

SUPER [EMAIL PROTECTED] Ignored exception processing signal 15
SUPER [EMAIL PROTECTED] Status code:503 request:R( /) msg:Server is starting
SUPER [EMAIL PROTECTED] Broken pipe in R( /)

Any qlues of what might be wrong?

/Therese


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



RE: Tomcat 3.2.2 and SSL

2003-06-05 Thread Abid Ali Teepo
I guess the https protocol is running on port 8443,
and not on 8080, as you are trying.

Try https://localhost:8443 and se if it works 

Regards,
Abid

-Original Message-
From: Rajarathinam PARTHASARTHY
[mailto:[EMAIL PROTECTED]
Sent: 31. mai 2003 13:46
To: Tomcat Users List
Subject: Tomcat 3.2.2 and SSL


Hi ,

 We are using tomcat 3.2.2.
 Now we want to setup SSL for tomcat3.2.2

 I have created the keys and set the following in the server.xml



Connector className=org.apache.tomcat.service.PoolTcpConnector 
 
Parameter name=handler 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port value=8443/  
 
Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory /  
 
Parameter name=keystore value=d:\tomcat3.2.2\conf\keystore\.keystore /   
 
Parameter name=keypass value=gemplus13/  
 
/Connector   
 

=

Now I can start the webserver and servers are listening in 8080 and 8443 ports.

But when I give https://localhost:8080, I don't get anything.
The status bar in the Internet Explorer browser shows as opening page at 
https://localhost:8080

Please help me to setup the SSL.

Thanks,
Parthasarthy.

-
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 3.2.2 and SSL

2003-06-05 Thread Rajarathinam PARTHASARTHY
First I have tried as https://localhost:8443 and then https://localhost:8080.
In both the case I could not get the default page.
Sorry for not mentioning this. Thanks for sending reply. 
Still looking for the solution.

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 8:07 PM
To: Tomcat Users List
Subject: RE: Tomcat 3.2.2 and SSL


I guess the https protocol is running on port 8443,
and not on 8080, as you are trying.

Try https://localhost:8443 and se if it works 

Regards,
Abid

-Original Message-
From: Rajarathinam PARTHASARTHY
[mailto:[EMAIL PROTECTED]
Sent: 31. mai 2003 13:46
To: Tomcat Users List
Subject: Tomcat 3.2.2 and SSL


Hi ,

 We are using tomcat 3.2.2.
 Now we want to setup SSL for tomcat3.2.2

 I have created the keys and set the following in the server.xml



Connector 
className=org.apache.tomcat.service.PoolTcpConnector 
 
Parameter name=handler 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port value=8443/   

Parameter name=socketFactory 
value=org.apache.tomcat.net.SSLSocketFactory /   
Parameter name=keystore 
value=d:\tomcat3.2.2\conf\keystore\.keystore /
Parameter name=keypass value=gemplus13/   

/Connector


=

Now I can start the webserver and servers are listening in 8080 
and 8443 ports.

But when I give https://localhost:8080, I don't get anything.
The status bar in the Internet Explorer browser shows as 
opening page at https://localhost:8080

Please help me to setup the SSL.

Thanks,
Parthasarthy.

-
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: Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Adi Katz
First shot with this kind of error: 
check the port number that you are using 443 or 8443
IE wil default https to 443 but if in server.xml 8443 is defined then you
should
try something like this: https://localhost:8443/

Hope it will help
Adi

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 12:17
To: Tomcat Users List
Subject: Activate SSL in Tomcat 4.1.24


Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

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

mail/Session problem

2003-06-05 Thread Ayhan Peker
Hi all
I am trying to use mail/Session resource as a global resource
my server.xml is like
  GlobalNamingResources


ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name

  valuebabel.image-data.com/value

/parameter

/ResourceParams


   /GlobalNamingResources
my host and context entry

host ...   /
context /
...
ResourceLink name=mail-Session global=mail/Session 
type=javax.mail.Session /
/Context
/Host

and I am trying to access it from a jsp page with :

	

Context initCtx = new InitialContext();

System.out.println(mail session is about to be  );

Object test = initCtx.lookup(java:comp/env/mail-Session);
System.out.println(test.getClass().getName());
javax.mail.Session mailsession = (javax.mail.Session) 
initCtx.lookup(java:comp/env/mail-Session);
System.out.println(mail session is created +mailsession);



but I am receiving the error message

mail session is about to be
javax.naming.NamingException: Cannot create resource instance
at org.apache.naming.factory.ResourceFactory.getObjectInstance(Resourc
Factory.java:189)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java
301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(Res
urceLinkFactory.java:143)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java
301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.apache.jsp.MailPage_jsp._jspService(MailPage_jsp.java:56)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapp
r.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDi
patcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(Applicatio
Dispatcher.java:432)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationD
spatcher.java:356)
at actions.ActionRouter.route(ActionRouter.java:68)
at ActionServlet.service(ActionServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ap
licationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicatio
FilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrappe
Valve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCont
xt.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.j
va:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:99
)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContex
Valve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCont
xt.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.RequestFilterValve.process(RequestFilter
alve.java:324)
at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.j
va:131)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCont
xt.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.j
va:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:99
)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.jav
:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve
java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveCont
xt.invokeNext(StandardPipeline.java:643)
at 

RE: Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Abid Ali Teepo

Thanks for answering.
This is the URL i use when i get the error The page cannot be displayed
Do you have any suggestions as to how i can debug this ? I mean are
there any settings in the tomcat that i can use to see what happens ?

Regards
Abid


-Original Message-
From: Adi Katz [mailto:[EMAIL PROTECTED]
Sent: 5. juni 2003 14:15
To: 'Tomcat Users List'
Subject: RE: Activate SSL in Tomcat 4.1.24


First shot with this kind of error: 
check the port number that you are using 443 or 8443
IE wil default https to 443 but if in server.xml 8443 is defined then you
should
try something like this: https://localhost:8443/

Hope it will help
Adi

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 12:17
To: Tomcat Users List
Subject: Activate SSL in Tomcat 4.1.24


Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

-
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: Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Adi Katz
when tomcat starts you should be able to see among the massages which port
is used. send me your server.xml file and web.xml file and I will have a
look

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:34
To: Tomcat Users List
Subject: RE: Activate SSL in Tomcat 4.1.24



Thanks for answering.
This is the URL i use when i get the error The page cannot be displayed
Do you have any suggestions as to how i can debug this ? I mean are
there any settings in the tomcat that i can use to see what happens ?

Regards
Abid


-Original Message-
From: Adi Katz [mailto:[EMAIL PROTECTED]
Sent: 5. juni 2003 14:15
To: 'Tomcat Users List'
Subject: RE: Activate SSL in Tomcat 4.1.24


First shot with this kind of error: 
check the port number that you are using 443 or 8443
IE wil default https to 443 but if in server.xml 8443 is defined then you
should
try something like this: https://localhost:8443/

Hope it will help
Adi

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 12:17
To: Tomcat Users List
Subject: Activate SSL in Tomcat 4.1.24


Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

-
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: Activate SSL in Tomcat 4.1.24

2003-06-05 Thread Adi Katz
check the files in the logs directory.
you might find some helpful inf there

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:34
To: Tomcat Users List
Subject: RE: Activate SSL in Tomcat 4.1.24



Thanks for answering.
This is the URL i use when i get the error The page cannot be displayed
Do you have any suggestions as to how i can debug this ? I mean are
there any settings in the tomcat that i can use to see what happens ?

Regards
Abid


-Original Message-
From: Adi Katz [mailto:[EMAIL PROTECTED]
Sent: 5. juni 2003 14:15
To: 'Tomcat Users List'
Subject: RE: Activate SSL in Tomcat 4.1.24


First shot with this kind of error: 
check the port number that you are using 443 or 8443
IE wil default https to 443 but if in server.xml 8443 is defined then you
should
try something like this: https://localhost:8443/

Hope it will help
Adi

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 12:17
To: Tomcat Users List
Subject: Activate SSL in Tomcat 4.1.24


Hello

I have a problem activating SSL in tomcat 4.1.24 on win2k.

The problem is that despite following all the instructions and
using the keytool to import the certificate into the keystore,
and uncommenting as well as updating the fields in the xml with
filename and password. Nothing seem to happen.

I get a regular internet explorer error that says 
 The page cannot be displayed 

Is there any way i can actually debug this to se what happens ?
The keytool import worked just fine on weblogic 

regards,
Abid

-
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: problem with updating an web app through manager app (linux work, win no)

2003-06-05 Thread Jacob Kjome
I have noticed this behavior sporadically.  Did you do a remove or an 
undeploy.  The latter is the correct one if you used deploy.  install 
and remove work together and deploy and undeploy work together.  Make 
sure not to mix them up.  You may get unpredictable behavior.  This really 
ought to be cleared up in the manager app.  A remove probably should be 
allowed to happen to a context that has been deployed.

Jake

At 02:28 PM 6/5/2003 -0300, you wrote:
I'm having a strange problem, in linux, if I upload a war through manager 
app, remove it , and upload again, it works fine, but in windows me, with 
the same tomcat version (4.1.26), it uploads ok, remove ok, but when i try 
to upload the same war as before, i t says :

FAIL - War file upLoad.war already exists on server

I get the same error on linux if I don't remove the context before 
uploading again.

Has anyone noted this behaviour on windows?

--
Emerson Cargnin
Analista de Sitemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


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


[NOTIFICATION DE NON REMISE] [NON DELIVERY NOTIFICATION]

2003-06-05 Thread filtermaster



Ce message a ete verifie par le systeme de filtrage de notre 
serveur de messagerie.

Le message original a ete remplace par celui-ci pour la raison 
suivante :

*** A suspicious file (executable code) was found in the message !

EN RAISON DU RISQUE DE TRANSMISSION DE VIRUS, notre systeme de
messagerie n'autorise pas la transmission de documents attaches
si ceux-ci ont des extensions correspondant a des documents
executables pour PC.  

SI VOUS SOUHAITEZ EFFECTIVEMENT TRANSMETTRE DES EXECUTABLES, 
il faut au prealable vous mettre en contact avec votre 
interlocuteur, afin de changer l'extension des documents 
transmis. 

L'emetteur du message est : 

   From : [EMAIL PROTECTED]
   Subject : Re: 45443-343556

Le(s) fichier(s) attache(s) est(sont):

   (X-FILE ??? ) : screensaver.scr
TYPE : application/octet-stream

   SUSPECT FILES : 1

Si ceci est une erreur, et si ce message aurait bien du etre 
transmis, vous pouvez consulter votre administrateur systeme
pour des instructions.

Vous pouvez nous contacter a l'adresse suivante :

[EMAIL PROTECTED]

Cordialement

[EMAIL PROTECTED]

P.S. : Il arrive souvent, en cas d'infection par un virus, 
   que des fichiers executables soient envoyes, a l'insu 
   de l'utilisateur. Si c'est votre cas, et que vous ne 
   comprendrez pas pourquoi vous recevez ce message, il 
   vous est fortement conseille de verifier si votre 
   ordinateur ne contient pas un virus.



 j-chkmail - (c) Ecole des Mines de Paris 2002


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



RE: Tomcat Manager deploy and undeploy

2003-06-05 Thread Jacob Kjome
At 02:48 PM 6/5/2003 -0400, you wrote:
There is nothing wrong with both of you. My interpretation is inaccurate. It
should be:
1. *Tomcat Manager* deployed myapp from myapp.war
2. *Tomcat* unpacked myapp.war because unpackWar=true in server.xml
Tomcat wouldn't unpack myapp.war even if unpackWar=true unless myapp.war 
actually found its way into the appBase of the host which by default in 
Tomcat is CATALINA_HOME/webapps.  Using the Tomcat ant manager tasks to 
deploy a .war to Tomcat, this simply doesn't happen.  The .war is not 
copied to the appBase and, therefore, does not get unpacked under the appBase.

Since context's docBase is the war (if deployed by *Tomcat Manager*), it
makes no sense unpacking the war.
If the docBase points to the .war file, even if the Host has 
unpackWARs=true, the .war file will not be unpacked.  I think this is 
what you are saying, although I'm not sure.  I just tested it and it works 
just as I've described.  I'm not sure what Paul is doing to get the 
behavior he see's???

I'd just like to clarify something.  When I say deploy, I mean deploying 
the .war file via the Catalina Ant manager deploy task.  Likewise, when I 
say undeploy, I mean via the the Catalina Ant manager undeploy task.  I 
do not mean the new feature in the html manager gui where one can upload a 
.war file.  I haven't tried that.  It must work differently than the Ant 
manger deploy task because no browser out there supports http PUT which 
is what the Ant manager task uses to deploy.

So, make sure you don't mix these concepts and make sure you don't mix up 
remove and undeploy because mixing them will very likely give you 
unpredictable behavior.

Jake

-Original Message-
From: Paul Christmann [mailto:[EMAIL PROTECTED]
Sent: June 5, 2003 1:54 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Manager deploy and undeploy
 Phillip Qin wrote:
 - war is uploaded to $CATALINA/work/Standalone/my.host/manager;
  - war is unpacked into $CATALIAN_HOME/webapps/myapp;
  Jacob Kjome wrote:
 completely false
I have to agree with Phillip -- I've seen (and reliably reproduced) this
behavior with Tomcat 4.1.24-LE.  The only way I got around problems
caused by this (undeploy would not work if the app had been unpacked in
the CATALINA_HOME/webapps folder, but remove would) was to modify the
distributed server.xml, adding unpackWARs=false to the Host entry.
I'd love to know *what* (if anything) I'm doing wrong, or have
configured wrong.  But I've reproduced this multiple times on 3
different Windows 2X servers with clean 4.1.24-LE installations.
PC



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


Same session across applications

2003-06-05 Thread shanmugampl
Hi All,

	I have around 10 applications deployed. My requirement is to have a 
same session for all the 10 applications. I am ready to change the 
Tomcat code if necessary.

	I have enabled SingleSignOn. What i require is, if the SingleSignOn Id 
is the same then the already created session should be used(a new 
session should not be created), otherwise a new session should be 
created. If this is done, i will have only one session across all my 
applications for a user.

	I know that i am going against the spec but still i would like to give 
it a try. Where should i make a change in the code to achieve this 
functionality.

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


Startup error

2003-06-05 Thread Luc Foisy

I am getting the following error in my catalina.out
Error: failed /usr/java/j2sdk1.4.0_03/jre/lib/i386/client/libjvm.so, because 
libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

I am using RedHat 9.0
Which package do I need to install to get this to function?

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



RE: Catalina Command Line Options

2003-06-05 Thread Shapira, Yoav

Howdy,

But is there a working variable substitution system ? I've read that
port=${server.port} should work, but i did not manage to make it
work, any sample/doc/idea ?

Whatever you read is wrong if it talks about tomcat 4.x.  To change
ports, edit server.xml.

If you are using embedded tomcat, which doesn't sound like the case, you
can set ports programmatically, but again not via command-line.

Yoav Shapira



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: Counting Threads

2003-06-05 Thread Shapira, Yoav

Howdy,
Search the archives.  I posted a SystemThreadList.java utility several
times to this list, and it does everything you want.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Billy Ng [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:48 AM
To: Tomcat Users List
Subject: Counting Threads

Hi folks,

Would anybody tell me how to monitor  the count of the exisitng threads
in
my java app because I get the All Threads are busy, waiting error
from
tomcat.

Billy Ng



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: Fail to load webapp's jar files using Tomcat 4.1.x

2003-06-05 Thread Shapira, Yoav

Howdy,
Are you sure the account running the tomcat server has write access to
$CATALINA_HOME/work?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jochen Schweflinghaus [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 8:49 AM
To: [EMAIL PROTECTED]
Subject: Fail to load webapp's jar files using Tomcat 4.1.x

Hi,
I have a Problem I assumed to be addressed by Ticket 13519
(allowLinking is
not working (for me).)in the Apache Bug Database,
which is said to be fixed with Tomcat versions 4.1.13+. Unfortunately I
still have the Problem when trying to migrate from Tomcat
4.0.4 to 4.1.24 using J2SDK 1.4.1_02 under RH Linux.

The Problem is following: My application runs fine under Tomcat
4.0.4,but
when switching to Tomcat 4.1.24 by
switching CATALINA_HOME, Application's jar files are not loaded any
more
from the WEB-INF/lib folder on startup.
The output to the Contexts log is:

2003-06-04 13:26:46 WebappLoader[/prod]: Deploying class repositories
to
work directory /prod/work/Apache/localhost/prod
2003-06-04 13:26:47 WebappLoader[/prod]: Deploy JAR
/WEB-INF/lib/scheduler.jar to
/prod/webapps/scheduler/WEB-INF/lib/scheduler.jar
2003-06-04 13:26:47 ContextConfig[/prod] Exception processing JAR at
resource path /WEB-INF/lib/scheduler.jar
javax.servlet.ServletException: Exception processing JAR at resource
path
/WEB-INF/lib/scheduler.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java
:930
)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:86
8)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.
java
:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
rt.java:166)
  ... (some more stack trace)

- Root Cause -
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1313)
at java.io.File.createTempFile(File.java:1401)
at java.io.File.createTempFile(File.java:1438)
at
sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
  ... (some more stack trace)


I have to mention, that the jar files in the WEB-INF/lib directory are
symbolyc links. When searching the web
for answers, I found the 'new' Resources component, which may be nested
into a Context. So I tried the Context
definition below in my server.xml, but still get the same result.

Context path=/prod docBase=scheduler debug=0 reloadable=false
 crossContext=true

   Resources className=org.apache.naming.resources.FileDirContext
  allowLinking=true/

   Logger className=org.apache.catalina.logger.FileLogger
   directory=/prod/scheduler/log  prefix=scheduler_tomcat
suffix=.log
   timestamp=true  verbosity=2/
/Context


I highly appreciate any help !


-
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: Fail to load webapp's jar files using Tomcat 4.1.x

2003-06-05 Thread Dorin Ciuca
Do you have a directory named temp in your $CATALINA_BASE ? If you don't
have it, you should create it.

Dorin

- Original Message -
From: Jochen Schweflinghaus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:48 PM
Subject: Fail to load webapp's jar files using Tomcat 4.1.x


 Hi,
 I have a Problem I assumed to be addressed by Ticket 13519 (allowLinking
is
 not working (for me).)in the Apache Bug Database,
 which is said to be fixed with Tomcat versions 4.1.13+. Unfortunately I
 still have the Problem when trying to migrate from Tomcat
 4.0.4 to 4.1.24 using J2SDK 1.4.1_02 under RH Linux.

 The Problem is following: My application runs fine under Tomcat 4.0.4,but
 when switching to Tomcat 4.1.24 by
 switching CATALINA_HOME, Application's jar files are not loaded any more
 from the WEB-INF/lib folder on startup.
 The output to the Contexts log is:

 2003-06-04 13:26:46 WebappLoader[/prod]: Deploying class repositories to
 work directory /prod/work/Apache/localhost/prod
 2003-06-04 13:26:47 WebappLoader[/prod]: Deploy JAR
 /WEB-INF/lib/scheduler.jar to
 /prod/webapps/scheduler/WEB-INF/lib/scheduler.jar
 2003-06-04 13:26:47 ContextConfig[/prod] Exception processing JAR at
 resource path /WEB-INF/lib/scheduler.jar
 javax.servlet.ServletException: Exception processing JAR at resource path
 /WEB-INF/lib/scheduler.jar
 at

org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
 at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
 at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
 at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
   ... (some more stack trace)

 - Root Cause -
 java.io.IOException: No such file or directory
 at java.io.UnixFileSystem.createFileExclusively(Native Method)
 at java.io.File.checkAndCreate(File.java:1313)
 at java.io.File.createTempFile(File.java:1401)
 at java.io.File.createTempFile(File.java:1438)
 at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
   ... (some more stack trace)


 I have to mention, that the jar files in the WEB-INF/lib directory are
 symbolyc links. When searching the web
 for answers, I found the 'new' Resources component, which may be nested
 into a Context. So I tried the Context
 definition below in my server.xml, but still get the same result.

 Context path=/prod docBase=scheduler debug=0 reloadable=false
  crossContext=true

Resources className=org.apache.naming.resources.FileDirContext
   allowLinking=true/

Logger className=org.apache.catalina.logger.FileLogger
directory=/prod/scheduler/log  prefix=scheduler_tomcat
 suffix=.log
timestamp=true  verbosity=2/
 /Context


 I highly appreciate any help !


 -
 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: Question about JavaBeans

2003-06-05 Thread Shapira, Yoav

Howdy,

It gave me error.)

What error?

Also I have some doubts to clarify.
1)   Do I need to have the WEB-INF folder in every context
directory?

No.  One WEB-INF per webapp, under the webapp docBase.

2)   Do I need to create a web.xml at this stage where I just
making
use of this simple javabeans?

Yes, always need a web.xml.

Can anyone tell me where should the proper place to store the bean
(.class) file??

It's fine where you have it now.

Yoav Shapira



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: NotSerializableException on webapp restart

2003-06-05 Thread Shapira, Yoav

Howdy,
You're probably putting non-Serializable objects as session
attributes...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Boris Folgmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 6:14 AM
To: Tomcat Users List
Subject: NotSerializableException on webapp restart

Hi!

When I restart tomcat 4.1 I get this exeption for my webapp in the
logfile.
The app works though. Am I doing something wrong concerning
java.io.Serializable and the objects in session contexts??

2003-06-04 12:01:41 StandardManager[/i] IOException while loading
persisted
sessions: java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.catalina.session.StandardSessionFacade
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.catalina.session.StandardSessionFacade
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845
)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:164
6)
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at
org.apache.catalina.session.StandardSession.readObject(Unknown
Source)
at
org.apache.catalina.session.StandardSession.readObjectData(Unknown
Source)
at org.apache.catalina.session.StandardManager.load(Unknown
Source)
at org.apache.catalina.session.StandardManager.start(Unknown
Source)
at org.apache.catalina.core.StandardContext.start(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
Source)
at org.apache.catalina.core.ContainerBase.addChild(Unknown
Source)
at org.apache.catalina.core.StandardHost.addChild(Unknown
Source)
at
org.apache.catalina.core.StandardHostDeployer.addChild(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:
252)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1064)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
[...]

I hope anybody can help.

tnx,
   boris


-
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: is session id unique across webapps ?

2003-06-05 Thread Angus Mezick
Hmm, I just read those two thread and I didn't see a final solution.  Is
getJvmRoute() unique across tomcat instances running on 5 web servers
all serving the same app using a JDBC session manager.  I know session
id is unique within a webapp but what about over a cluster of webapps
that don't use sticky sessions?  All that blather about it being a
statistical improbability that a session id will be duped is crap.  It
has to be IMPOSSIBLE across a non-sticky cluster for a dupe session id
to be generated.
--Angus

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 04, 2003 6:56 AM
 To: Tomcat Users List
 Subject: Re: is session id unique across webapps ?
 
 
 Tomcat creates its sessionids from a random number generator. 
 The breadth of 
 random numbers is very wide allowing for virtually no 
 overlaps. But since 
 they are random, dups may appear. Tomcat does have checks to 
 make sure it 
 doesn't give out an existing session id in a particular webapp.
 
 That being said, I think it is possible that the same 
 session_id may be used 
 by two different users for two different webapps.
 
 So if you really need a unique identifier, append session_id 
 to context path.
 
 There was a few discussions in developers list above session 
 id uniqueness.
 
http://marc.theaimsgroup.com/?t=10407214591r=1w=2
http://marc.theaimsgroup.com/?t=10420795603r=1w=2


-Tim

siddharth wrote:
 Hi all,
 
 I am tring to find out about *uniqueness* of *session ids*  which are 
 generated by tomcat.
 
 are session ids are unique across webapps ???
 ---
 
 
 
 thanx.
 


-
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: is session id unique across webapps ?

2003-06-05 Thread Schwartz, David (CHR)
I thought it was based on the browser ID + number - therefore always unique.

-Original Message-
From: Angus Mezick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:28 AM
To: Tomcat Users List
Subject: RE: is session id unique across webapps ?


Hmm, I just read those two thread and I didn't see a final solution.  Is
getJvmRoute() unique across tomcat instances running on 5 web servers
all serving the same app using a JDBC session manager.  I know session
id is unique within a webapp but what about over a cluster of webapps
that don't use sticky sessions?  All that blather about it being a
statistical improbability that a session id will be duped is crap.  It
has to be IMPOSSIBLE across a non-sticky cluster for a dupe session id
to be generated.
--Angus

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 04, 2003 6:56 AM
 To: Tomcat Users List
 Subject: Re: is session id unique across webapps ?
 
 
 Tomcat creates its sessionids from a random number generator. 
 The breadth of 
 random numbers is very wide allowing for virtually no 
 overlaps. But since 
 they are random, dups may appear. Tomcat does have checks to 
 make sure it 
 doesn't give out an existing session id in a particular webapp.
 
 That being said, I think it is possible that the same 
 session_id may be used 
 by two different users for two different webapps.
 
 So if you really need a unique identifier, append session_id 
 to context path.
 
 There was a few discussions in developers list above session 
 id uniqueness.
 
http://marc.theaimsgroup.com/?t=10407214591r=1w=2
http://marc.theaimsgroup.com/?t=10420795603r=1w=2


-Tim

siddharth wrote:
 Hi all,
 
 I am tring to find out about *uniqueness* of *session ids*  which are 
 generated by tomcat.
 
 are session ids are unique across webapps ???
 ---
 
 
 
 thanx.
 


-
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: JSTL and EL question - SOLVED

2003-06-05 Thread Nikola Milutinovic
- Original Message - 
From: Schwartz, David (CHR) [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:55 PM
Subject: RE: JSTL and EL question - SOLVED


 I'm still having problems. Can you please post a complete sample along with
 web.xml sample?

What exactly are your problems?

In web.xml you should declare taglibs:

 taglib
  taglib-urihttp://java.sun.com/jstl/core/taglib-uri
  taglib-location/WEB-INF/c.tld/taglib-location
 /taglib
 taglib
  taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
  taglib-location/WEB-INF/sql.tld/taglib-location
 /taglib
 
 resource-ref
  res-ref-namejdbc/EVracunDS/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
 /resource-ref

And then use this in your JSP:

sql:setDataSource dataSource=EVracunDS/
sql:query var=userData
  SELECT * FROM user_tab WHERE user_id = ?
  sql:param value=${userID}/
/sql:query
...
c:set var=userRow value=${userData.rows[0]}/
c:out value=${userRow.user_id}/
...

Nix.


RE: JSTL and EL question - SOLVED

2003-06-05 Thread Schwartz, David (CHR)
can you also send the taglib line from the top of jsp? 

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:32 AM
To: Tomcat Users List
Subject: Re: JSTL and EL question - SOLVED


- Original Message - 
From: Schwartz, David (CHR) [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:55 PM
Subject: RE: JSTL and EL question - SOLVED


 I'm still having problems. Can you please post a complete sample along
with
 web.xml sample?

What exactly are your problems?

In web.xml you should declare taglibs:

 taglib
  taglib-urihttp://java.sun.com/jstl/core/taglib-uri
  taglib-location/WEB-INF/c.tld/taglib-location
 /taglib
 taglib
  taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
  taglib-location/WEB-INF/sql.tld/taglib-location
 /taglib
 
 resource-ref
  res-ref-namejdbc/EVracunDS/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
 /resource-ref

And then use this in your JSP:

sql:setDataSource dataSource=EVracunDS/
sql:query var=userData
  SELECT * FROM user_tab WHERE user_id = ?
  sql:param value=${userID}/
/sql:query
...
c:set var=userRow value=${userData.rows[0]}/
c:out value=${userRow.user_id}/
...

Nix.

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



Re:error when shutting down tomcat

2003-06-05 Thread Geralyn M Hollerman
Sandeep wrote:
 i hav installed tomcat on a hp-ux server. i hav abs no probs using it. but
 it gives an error when i shut it down using ./shutdown.sh. after 2 or 3
 tries it shuts down properly. the error msg is as follows :-
 
 $./shutdown.sh
 
 Using CATALINA_BASE:   /home/sandeep/tom/jakarta-tomcat-4.1.24
 Using CATALINA_HOME:   /home/sandeep/tom/jakarta-tomcat-4.1.24
 Using CATALINA_TMPDIR: /home/sandeep/tom/jakarta-tomcat-4.1.24/temp
 Using JAVA_HOME:   /home/sandeep/java1.3
 Catalina.stop: java.net.ConnectException: Connection refused
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.Socket.init(Unknown Source)
 at java.net.Socket.init(Unknown Source)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:402
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 $./shutdown.sh
 shuts down after 2-3 tries.

I have this exact same problem - on a Solaris 8 system running Tomcat
4.0.4. I thought this error might be somewhere in shutdown.sh, as that's
what does the catalina.sh stop, but I also see it using just
catalina.sh. I'm not sure what Connection refused indicates - is it a
timing problem? Can this error be safely disregarded? As Sandeep
mentions, there are no problems (that I can see) with running Tomcat,
just this error on shutdown.

TIA,

-- 
Lynn Hollerman.

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



.htaccess / access restriction

2003-06-05 Thread Henning Heil
Hi everybody!

I am wondering a bit how I can get a simple access control for a dir 
under tomcat.

I am talking about a dir directly under the root-context - is there 
something similar to .htaccess? Other possibilities?

Thanks for your help,

Henning



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


RE: is session id unique across webapps ?

2003-06-05 Thread Angus Mezick
From ManagerBase.java:  I worry that jvmRoute is not unique across
servers in a cluster if using JDBC store instead of sticky sessions. 

public Session createSession() {

// Recycle or create a Session instance
Session session = createEmptySession();

// Initialize the properties of the new session and return it
session.setNew(true);
session.setValid(true);
session.setCreationTime(System.currentTimeMillis());
session.setMaxInactiveInterval(this.maxInactiveInterval);
String sessionId = generateSessionId();

String jvmRoute = getJvmRoute();
// @todo Move appending of jvmRoute generateSessionId()???
if (jvmRoute != null) {
sessionId += '.' + jvmRoute;
}
synchronized (sessions) {
while (sessions.get(sessionId) != null){ // Guarantee
uniqueness
sessionId = generateSessionId();
duplicates++;
// @todo Move appending of jvmRoute
generateSessionId()???
if (jvmRoute != null) {
sessionId += '.' + jvmRoute;
}
}
}

session.setId(sessionId);
sessionCounter++;

return (session);

}


protected synchronized String generateSessionId() {

// Generate a byte array containing a session identifier
Random random = getRandom();
byte bytes[] = new byte[SESSION_ID_BYTES];
getRandom().nextBytes(bytes);
bytes = getDigest().digest(bytes);

// Render the result as a String of hexadecimal digits
StringBuffer result = new StringBuffer();
for (int i = 0; i  bytes.length; i++) {
byte b1 = (byte) ((bytes[i]  0xf0)  4);
byte b2 = (byte) (bytes[i]  0x0f);
if (b1  10)
result.append((char) ('0' + b1));
else
result.append((char) ('A' + (b1 - 10)));
if (b2  10)
result.append((char) ('0' + b2));
else
result.append((char) ('A' + (b2 - 10)));
}
return (result.toString());

}

10 minutes later after reading more code:
1) I love the fact that jakarta doesn't to * imports! YAH!
2) jvmRoute is a non-required field of the engine tag in server.xml.
You set it to anything you like so it is your own darn fault if the
session id isn't unique across a cluster!  YAH!


 -Original Message-
 From: Schwartz, David (CHR) [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 04, 2003 9:30 AM
 To: 'Tomcat Users List'
 Subject: RE: is session id unique across webapps ?
 
 
 I thought it was based on the browser ID + number - therefore 
 always unique.
 
 -Original Message-
 From: Angus Mezick [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 9:28 AM
 To: Tomcat Users List
 Subject: RE: is session id unique across webapps ?
 
 
 Hmm, I just read those two thread and I didn't see a final 
 solution.  Is
 getJvmRoute() unique across tomcat instances running on 5 web servers
 all serving the same app using a JDBC session manager.  I know session
 id is unique within a webapp but what about over a cluster of webapps
 that don't use sticky sessions?  All that blather about it being a
 statistical improbability that a session id will be duped is crap.  It
 has to be IMPOSSIBLE across a non-sticky cluster for a dupe session id
 to be generated.
 --Angus
 
  -Original Message-
  From: Tim Funk [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, June 04, 2003 6:56 AM
  To: Tomcat Users List
  Subject: Re: is session id unique across webapps ?
  
  
  Tomcat creates its sessionids from a random number generator. 
  The breadth of 
  random numbers is very wide allowing for virtually no 
  overlaps. But since 
  they are random, dups may appear. Tomcat does have checks to 
  make sure it 
  doesn't give out an existing session id in a particular webapp.
  
  That being said, I think it is possible that the same 
  session_id may be used 
  by two different users for two different webapps.
  
  So if you really need a unique identifier, append session_id 
  to context path.
  
  There was a few discussions in developers list above session 
  id uniqueness.
  
 http://marc.theaimsgroup.com/?t=10407214591r=1w=2
 http://marc.theaimsgroup.com/?t=10420795603r=1w=2
 
 
 -Tim
 
 siddharth wrote:
  Hi all,
  
  I am tring to find out about *uniqueness* of *session ids*  
 which are 
  generated by tomcat.
  
  are session ids are unique across webapps ???
  ---
  
  
  
  thanx.
  
 
 
 -
 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: .htaccess / access restriction

2003-06-05 Thread Florent Zara
Henning Heil wrote:
I am wondering a bit how I can get a simple access control for a dir 
under tomcat.

I am talking about a dir directly under the root-context - is there 
something similar to .htaccess? Other possibilities?

Look for Realm How-to in the Tomcat Documentation.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html
JGuru's FAQ may also help you:
http://www.jguru.com/faq/view.jsp?EID=1082911
Florent

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


Re: Re: Different shutdown behavior of httpConnector in TC403 (graceful) and TC406 (reckless)

2003-06-05 Thread Frank . Strecker

Okay, I see that point. Since the worker threads who perform the very work to
respond a request are deamons, there seems to be a hard and unconfigured timeout
effective in TC406.

TC403 and TC406 show different behaviors when stopping. Both would require
certain application coding, but which one is the correct  behavior, that
application programmers should rely on?





Tim Funk [EMAIL PROTECTED]
04.06.2003 12:03

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]
An: Tomcat Users List [EMAIL PROTECTED]
Kopie:
Thema:  Re: Different shutdown behavior of httpConnector in TC403 (graceful)
and TC406 (reckless)


There isn't any code (that I know of) in 4.0.6 that performs the kill.

The JVM will terminate if only daemon threads are running. If the daemon
threads need to perform more work during a shutdown, you need to make sure
one of them is non-daemon.

-Tim

[EMAIL PROTECTED] wrote:

 When shutdown.sh is launched, TC performs a stop on all HttpConnectors, which
 themselves will stop their HttpProcessors.

 It seems to that -  while TC 403 waits gracefully for the work on a request
to
 be finished (even forever) - TC 406 will wait 5 secs only and then shutdown
 without
 any respect to the work done in the processors background threads.

 I am afraid both ways can have undesired consequences. TC 403 will sometimes
 simply resist to shut down,  while in a TC406 shutdown the work done in daemon
 threads will be interrupted without regards to the current states of the
 threads.

 The behavior of TC 406 is fine when there are only requests that can be
handled
 fast. On the other hand, with large transactions I would prefer the behavior
of
 TC 403 and pervent the requests from lasting too long by implementing
 configurable timeouts myself in the application code. Otherwise - or as it
seems
 to be implemented in TC406 - we would risk to interrupt vulnerable operations,
 aren't we?

 So, my primary question is this one: Did I overlook a point, in particular: Is
 there a way to configure the shutdown behavior in TC 406 top wait for the
 background threads to finish?

 There was discussion on that topic last year (
 http://marc.theaimsgroup.com/?t=10445419061r=1w=2),
 but I do not see where it had practical consequences in the code.

 Thanks

 Frank



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



changing tomcat configuration on the fly

2003-06-05 Thread Adi Katz
Hello,

I am interested in changing the server.xml and web.xml files through
servlets and then reload them.
So for example I can add JNDI entries in server.xml without the nedd to
stop/start tomcat again.
Something very similar is done in the admin app ( shipped with tomcat ).
Does anybody have a code example or some tips on how to do it ??

Thanks,
Adi


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



Re: changing tomcat configuration on the fly

2003-06-05 Thread Dominic Parry
you can find it in the Tomcat source. Just look in the source for the admin app.
  - Original Message - 
  From: Adi Katz 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 04, 2003 4:08 PM
  Subject: changing tomcat configuration on the fly


  Hello,

  I am interested in changing the server.xml and web.xml files through
  servlets and then reload them.
  So for example I can add JNDI entries in server.xml without the nedd to
  stop/start tomcat again.
  Something very similar is done in the admin app ( shipped with tomcat ).
  Does anybody have a code example or some tips on how to do it ??

  Thanks,
  Adi


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



Jk2 - BAD packet signature

2003-06-05 Thread Gareth Nolan
Hi,

Can anyone help me the above error. I'm running apache 2.0.45 / tomcat 4.1.24 on a 
redhat 8 box and I'm trying to get the jk2 connector to work using channel socket 
(connector-4.1.24). No matter which port I use (configured in workers2.properties - 
8009, 8019) I get a bad packet signature. The message that is dumped to the log would 
indeed through this error according to MsgAjp.java i.e. not x1234 or x4142 but I'm not 
sure what I'm doing wrong.

Any help would be greatly appreciated.

Gareth


RE: Restarting Tomcat without restarting Apache

2003-06-05 Thread softspt


Protective Marking: UNCLASSIFIED

Thanks for the replies; sounds like I needn't have worried so much :-)



*
This Email and any files transmitted with it is intended solely for
the use of the individual or entity to whom they are addressed. 
If you have received this email in error 
please notify:   [EMAIL PROTECTED]

Communications with this Department maybe monitored or 
recorded in order to secure the effective operation of the system
and for other lawful purposes.

*


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



Re: JSTL and EL question - SOLVED

2003-06-05 Thread Jeff Knox
I never thought about putting the tablib in the web.xml file. I like 
that! As for referencing the tablibs on individual pages there are four 
differentlibraries you can use depending on what you need to do on the 
page. The core library is:

   [EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core; %

For internationalization and formatting:

[EMAIL PROTECTED] prefix=fmt uri=http://java.sun.com/jstl/fmt; %

Database access:

   [EMAIL PROTECTED] prefix=sql uri=http://java.sun.com/jstl/sql; %

XML parsing and transforming:

   [EMAIL PROTECTED] prefix=x uri=http://java.sun.com/jstl/xml; %

On Wednesday, June 4, 2003, at 06:35  AM, Schwartz, David (CHR) wrote:

can you also send the taglib line from the top of jsp?

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:32 AM
To: Tomcat Users List
Subject: Re: JSTL and EL question - SOLVED
- Original Message -
From: Schwartz, David (CHR) [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:55 PM
Subject: RE: JSTL and EL question - SOLVED

I'm still having problems. Can you please post a complete sample along
with
web.xml sample?
What exactly are your problems?

In web.xml you should declare taglibs:

 taglib
  taglib-urihttp://java.sun.com/jstl/core/taglib-uri
  taglib-location/WEB-INF/c.tld/taglib-location
 /taglib
 taglib
  taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
  taglib-location/WEB-INF/sql.tld/taglib-location
 /taglib
 resource-ref
  res-ref-namejdbc/EVracunDS/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
 /resource-ref
And then use this in your JSP:

sql:setDataSource dataSource=EVracunDS/
sql:query var=userData
  SELECT * FROM user_tab WHERE user_id = ?
  sql:param value=${userID}/
/sql:query
...
c:set var=userRow value=${userData.rows[0]}/
c:out value=${userRow.user_id}/
...
Nix.

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


Limiting login attempts

2003-06-05 Thread Nowakowski, Jeff
Hi,

Is there any way to limit the number of login attempts using the
security realm stuff?  We're using form-based login.  We'd like to
limit a user to N attempts and then display a message saying that
their account has been locked out.

-Jeff

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



Re: NotSerializableException on webapp restart

2003-06-05 Thread Boris Folgmann
Shapira, Yoav schrieb:
 Howdy,
 You're probably putting non-Serializable objects as session
 attributes...

Yes, you are right. For tracking all logged in users I store a reference to
  every users HttpSession in his user object which is itself in the session
context.

HttpSession is org.apache.catalina.session.StandardSessionFacade in tomcat
and this class does not implement java.io.Serializable. Any idea how I can
fix this problem?

cu,
boris


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



RE: NotSerializableException on webapp restart

2003-06-05 Thread Shapira, Yoav

Howdy,

Yes, you are right. For tracking all logged in users I store a reference to
  every users HttpSession in his user object which is itself in the session
context.

HttpSession is org.apache.catalina.session.StandardSessionFacade in tomcat
and this class does not implement java.io.Serializable. Any idea how I can
fix this problem?

It depends on how much work you want to do.  It's not a good idea for your to depend 
on implementation details of the Catalina session façade.  However, the session ID is 
a primitive (String) which is serializable.  So instead of storing a reference to the 
session, store a reference to the session ID.  Have an HttpSessionListener which keeps 
a Map of session IDs to sessions.  You can get the session for a given session ID from 
your listener as needed.

This solution is container-independent and portable.

Yoav Shapira



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: Limiting login attempts

2003-06-05 Thread DAVIES, GARETH [AG-Contractor/1000]
Jeff,

We have recently done this using Security Filter (securityfilter.org) and a custom 
realm. The realm's authenticate method(s) delegates to a business tier object that 
handles authentication/authorization, including locking out users after N attempts.

Gareth Davies

-Original Message-
From: Nowakowski, Jeff [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:38 AM
To: [EMAIL PROTECTED]
Subject: Limiting login attempts


Hi,

Is there any way to limit the number of login attempts using the
security realm stuff?  We're using form-based login.  We'd like to
limit a user to N attempts and then display a message saying that
their account has been locked out.

-Jeff

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



mod_jk windows 2000 pro

2003-06-05 Thread JB97782




Hi all, I am new to using apache and tomcat. I have installed both on a
Windows 2000 pro PC. I installed apache v2.0.42 and tomcat v4.1.18.
I followed John Turners instructions for getting mod_jk working
(http://www.johnturner.com/howto/winxp-howto.html) but I can not get tomcat
to serv pages on port 80. I have tried mod_jk-2.0.43 and mod_jk-2.0.42 but
neither lets me access jsp on port 80. But everything does work on port
8080. Does anyone know of any other documentation for getting JK to work?

Thanks!

Jim


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



jar ressource pb

2003-06-05 Thread mourad jaber
Hi,
I'm trying to understand the folowing problem :
I've got some xml files into the jar file of my webapp.
when I use a stand alone java application to retreive that ressource by 
using ClassLoader.getSystemClassLoader().getResource(myfile.xml) it 
works...
but it doesn't work any more ( I get null ) when I do it into my webapp...
Any suggestion ?
Thanks a lot

Mourad

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


Modified ROOT

2003-06-05 Thread ColinB
As I understand it, at first startup the Tomcat server expands the
ROOT.war file in the webapps directory.

But I need to modify a file that is within the expanded (default) ROOT
archive and also add a new file. I could probably do this by manually
expanding the ROOT.war and then modify/adding the files, but this needs
to happen automatically in a general installation script.

Would it be possible to add my own war file containing only the
new/modified files to the webapps directory, and have Tomcat expand
ROOT.war and then expand myfiles.war to overwrite the required files in
the ROOT directory?

Or is there a cleaner way to do this?

Thanks

Colin


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



RE: jar ressource pb

2003-06-05 Thread Shapira, Yoav

Howdy,
Use the thread context class loader instead of the system classloader.
ClassLoader tcl = Thread.currentThread().getContextClassLoader();
tcl.getResource(...);

This will work on both the servlet container and command-line
applications.  See the docs page Classloader HOW-TO for more
information.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: mourad jaber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:08 AM
To: Tomcat Users List
Subject: jar ressource pb

Hi,
I'm trying to understand the folowing problem :
I've got some xml files into the jar file of my webapp.
when I use a stand alone java application to retreive that ressource by
using ClassLoader.getSystemClassLoader().getResource(myfile.xml) it
works...
but it doesn't work any more ( I get null ) when I do it into my
webapp...
Any suggestion ?
Thanks a lot

Mourad


-
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: jar ressource pb

2003-06-05 Thread Jacob Kjome
because they are in the WebappClassLoader which the system class loader 
cannot see.

Either use:

MyClass.class.getResource(/package/path/to/resource/myfile.xml);

or

MyClass.class.getClassLoader().getResource(package/path/to/resource/myfile.xml);

or if your resource files exist in WEB-INF or something like that, use...

context.getResource(/WEB-INF/myfile.xml);

Jake

At 05:07 PM 6/4/2003 +0200, you wrote:
Hi,
I'm trying to understand the folowing problem :
I've got some xml files into the jar file of my webapp.
when I use a stand alone java application to retreive that ressource by 
using ClassLoader.getSystemClassLoader().getResource(myfile.xml) it works...
but it doesn't work any more ( I get null ) when I do it into my webapp...
Any suggestion ?
Thanks a lot

Mourad

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


Re: jar ressource pb [solved]

2003-06-05 Thread mourad jaber
I reply myself, because I just find the solution by using :
this.getClass().getClassLoader().getResource(myFile.xml)
mourad jaber wrote:

Hi,
I'm trying to understand the folowing problem :
I've got some xml files into the jar file of my webapp.
when I use a stand alone java application to retreive that ressource 
by using ClassLoader.getSystemClassLoader().getResource(myfile.xml) 
it works...
but it doesn't work any more ( I get null ) when I do it into my 
webapp...
Any suggestion ?
Thanks a lot

Mourad

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


WEB-INF with War Files

2003-06-05 Thread Tyson Lowery
Hi all,
I have 3 different files for my web deployment - app.jar, app.war, and
app.properties.

Can I use a WEB-INF structure when using a war file?  I have placed the war
file in Tomcat's webapps directory.  I have then created a directory called
apps with a WEB-INF subdirectory, which has two more subdirectories -
classes and lib.  I have placed the app.jar in the lib directory, and the
app.properties in the classes directory.  My application requires
app.properties to be in the classpath.  My application also needs to be able
to read and write to this properties file.

The jar and properties file aren't visible to the JSP pages in the war file.
I get all kinds of class not found errors.  When I move the jar to
common/lib/, but leave the properties file in classes, the jar is read but
the properties file is not.  I can't place everything in the common folders
anyhow, since I ultimately want to run multiple versions of the software on
the same Tomcat instance.

Am I doing something wrong?  Do I need a web.xml in the WEB-INF directory?
Any other helpful hints would be appreciated.

Tyson
[EMAIL PROTECTED]
www.simdynasty.com




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



script permissions changing?

2003-06-05 Thread Jiann-Ming Su
We're running Tomcat 4.1.24.  For some unknown reason, the permissions
on the shell scripts in the bin/ change; it simply loses the executable
bit.  I didn't experience this with 4.1.12.  Any idea why this would
happen?

-- 
Jiann-Ming Su  [EMAIL PROTECTED]  404-712-2603
Development Team Systems Administrator
General Libraries Systems Division


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



Re: JSTL and EL question - SOLVED

2003-06-05 Thread Jeff Knox
I thought I liked the idea of having the taglib in the web.xml file. 
When I try it I'm getting This absolute uri 
(http://java.sun.com/jstl/core) cannot be resolved in either web.xml or 
the jar files deployed with this application. Do I have to download it 
somewhere in order to use it in the web.xml file? Any ideas?

Thanks,

Jeff

On Wednesday, June 4, 2003, at 07:36  AM, Jeff Knox wrote:

I never thought about putting the tablib in the web.xml file. I like 
that! As for referencing the tablibs on individual pages there are 
four differentlibraries you can use depending on what you need to do 
on the page. The core library is:

   [EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core; %

For internationalization and formatting:

[EMAIL PROTECTED] prefix=fmt uri=http://java.sun.com/jstl/fmt; %

Database access:

   [EMAIL PROTECTED] prefix=sql uri=http://java.sun.com/jstl/sql; %

XML parsing and transforming:

   [EMAIL PROTECTED] prefix=x uri=http://java.sun.com/jstl/xml; %

On Wednesday, June 4, 2003, at 06:35  AM, Schwartz, David (CHR) wrote:

can you also send the taglib line from the top of jsp?

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:32 AM
To: Tomcat Users List
Subject: Re: JSTL and EL question - SOLVED
- Original Message -
From: Schwartz, David (CHR) [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:55 PM
Subject: RE: JSTL and EL question - SOLVED

I'm still having problems. Can you please post a complete sample 
along
with
web.xml sample?
What exactly are your problems?

In web.xml you should declare taglibs:

 taglib
  taglib-urihttp://java.sun.com/jstl/core/taglib-uri
  taglib-location/WEB-INF/c.tld/taglib-location
 /taglib
 taglib
  taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
  taglib-location/WEB-INF/sql.tld/taglib-location
 /taglib
 resource-ref
  res-ref-namejdbc/EVracunDS/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
 /resource-ref
And then use this in your JSP:

sql:setDataSource dataSource=EVracunDS/
sql:query var=userData
  SELECT * FROM user_tab WHERE user_id = ?
  sql:param value=${userID}/
/sql:query
...
c:set var=userRow value=${userData.rows[0]}/
c:out value=${userRow.user_id}/
...
Nix.

-
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: Different shutdown behavior of httpConnector in TC403 (graceful)and TC406 (reckless)

2003-06-05 Thread Tim Funk
If your need daemon threads to perform some type of cleanup. You'll need to
- Create a non-deamon thread for the sole purpose of ensuring the JVM stays up
- Create a LifeCycleListener (or other appropriate listener) to listen for 
tomcat startup and shutdown events
- On shutdown, you'll need a synching method to kill the non-daemon thread 
once it knows all the daemon threads are done doing their thing

-Tim

[EMAIL PROTECTED] wrote:
Okay, I see that point. Since the worker threads who perform the very work to
respond a request are deamons, there seems to be a hard and unconfigured timeout
effective in TC406.
TC403 and TC406 show different behaviors when stopping. Both would require
certain application coding, but which one is the correct  behavior, that
application programmers should rely on?




Tim Funk [EMAIL PROTECTED]
04.06.2003 12:03
Bitte antworten an Tomcat Users List [EMAIL PROTECTED]
An: Tomcat Users List [EMAIL PROTECTED]
Kopie:
Thema:  Re: Different shutdown behavior of httpConnector in TC403 (graceful)
and TC406 (reckless)
There isn't any code (that I know of) in 4.0.6 that performs the kill.

The JVM will terminate if only daemon threads are running. If the daemon
threads need to perform more work during a shutdown, you need to make sure
one of them is non-daemon.
-Tim

[EMAIL PROTECTED] wrote:

When shutdown.sh is launched, TC performs a stop on all HttpConnectors, which
themselves will stop their HttpProcessors.
It seems to that -  while TC 403 waits gracefully for the work on a request
to

be finished (even forever) - TC 406 will wait 5 secs only and then shutdown
without
any respect to the work done in the processors background threads.
I am afraid both ways can have undesired consequences. TC 403 will sometimes
simply resist to shut down,  while in a TC406 shutdown the work done in daemon
threads will be interrupted without regards to the current states of the
threads.
The behavior of TC 406 is fine when there are only requests that can be
handled

fast. On the other hand, with large transactions I would prefer the behavior
of

TC 403 and pervent the requests from lasting too long by implementing
configurable timeouts myself in the application code. Otherwise - or as it
seems

to be implemented in TC406 - we would risk to interrupt vulnerable operations,
aren't we?
So, my primary question is this one: Did I overlook a point, in particular: Is
there a way to configure the shutdown behavior in TC 406 top wait for the
background threads to finish?
There was discussion on that topic last year (
http://marc.theaimsgroup.com/?t=10445419061r=1w=2),
but I do not see where it had practical consequences in the code.
Thanks

Frank



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



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






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



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


Re: .htaccess / access restriction

2003-06-05 Thread Tim Funk
See web.xml's for the manager app and admin app.

-Tim

Henning Heil wrote:
Hi everybody!

I am wondering a bit how I can get a simple access control for a dir 
under tomcat.

I am talking about a dir directly under the root-context - is there 
something similar to .htaccess? Other possibilities?

Thanks for your help,

Henning

 


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


RE: JSTL and EL question - SOLVED

2003-06-05 Thread Schwartz, David (CHR)
I get the same error!

-Original Message-
From: Jeff Knox [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:35 AM
To: Tomcat Users List
Subject: Re: JSTL and EL question - SOLVED


I thought I liked the idea of having the taglib in the web.xml file. 
When I try it I'm getting This absolute uri 
(http://java.sun.com/jstl/core) cannot be resolved in either web.xml or 
the jar files deployed with this application. Do I have to download it 
somewhere in order to use it in the web.xml file? Any ideas?

Thanks,

Jeff


On Wednesday, June 4, 2003, at 07:36  AM, Jeff Knox wrote:

 I never thought about putting the tablib in the web.xml file. I like 
 that! As for referencing the tablibs on individual pages there are 
 four differentlibraries you can use depending on what you need to do 
 on the page. The core library is:

[EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core; %

 For internationalization and formatting:

 [EMAIL PROTECTED] prefix=fmt uri=http://java.sun.com/jstl/fmt; %

 Database access:

[EMAIL PROTECTED] prefix=sql uri=http://java.sun.com/jstl/sql; %

 XML parsing and transforming:

[EMAIL PROTECTED] prefix=x uri=http://java.sun.com/jstl/xml; %


 On Wednesday, June 4, 2003, at 06:35  AM, Schwartz, David (CHR) wrote:

 can you also send the taglib line from the top of jsp?

 -Original Message-
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 9:32 AM
 To: Tomcat Users List
 Subject: Re: JSTL and EL question - SOLVED


 - Original Message -
 From: Schwartz, David (CHR) [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 1:55 PM
 Subject: RE: JSTL and EL question - SOLVED


 I'm still having problems. Can you please post a complete sample 
 along
 with
 web.xml sample?

 What exactly are your problems?

 In web.xml you should declare taglibs:

  taglib
   taglib-urihttp://java.sun.com/jstl/core/taglib-uri
   taglib-location/WEB-INF/c.tld/taglib-location
  /taglib
  taglib
   taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
   taglib-location/WEB-INF/sql.tld/taglib-location
  /taglib

  resource-ref
   res-ref-namejdbc/EVracunDS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
  /resource-ref

 And then use this in your JSP:

 sql:setDataSource dataSource=EVracunDS/
 sql:query var=userData
   SELECT * FROM user_tab WHERE user_id = ?
   sql:param value=${userID}/
 /sql:query
 ...
 c:set var=userRow value=${userData.rows[0]}/
 c:out value=${userRow.user_id}/
 ...

 Nix.

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



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



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

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



Re: changing tomcat configuration on the fly

2003-06-05 Thread Tim Funk
There is no way to change web.xml on the fly. Except by -
- putting a new web.xml in its place
- stop the app
- start the app
As for changes to server.xml. This can be done via JMX. See the code to the 
admin app on how make changes.

-Tim

Adi Katz wrote:
Hello,

I am interested in changing the server.xml and web.xml files through
servlets and then reload them.
So for example I can add JNDI entries in server.xml without the nedd to
stop/start tomcat again.
Something very similar is done in the admin app ( shipped with tomcat ).
Does anybody have a code example or some tips on how to do it ??
Thanks,
Adi
 


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


Re: mod_jk windows 2000 pro

2003-06-05 Thread John Turner
Any special reason you didn't use Apache 2.0.45?

John

On Wed, 4 Jun 2003 10:53:44 -0400, [EMAIL PROTECTED] wrote:





Hi all, I am new to using apache and tomcat. I have installed both on a
Windows 2000 pro PC. I installed apache v2.0.42 and tomcat v4.1.18.
I followed John Turners instructions for getting mod_jk working
(http://www.johnturner.com/howto/winxp-howto.html) but I can not get 
tomcat
to serv pages on port 80. I have tried mod_jk-2.0.43 and mod_jk-2.0.42 
but
neither lets me access jsp on port 80. But everything does work on port
8080. Does anyone know of any other documentation for getting JK to work?

Thanks!

Jim

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



--
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: WEB-INF with War Files

2003-06-05 Thread Shapira, Yoav

Howdy,
You need a web.xml in the WEB-INF directory.  You don't have write
permission normally to files on the classpath, including your own
property file.

A .war file is just the congolomeration of everything under your docBase
jarred together.  If you expand it (jar xvf app.war) and remove it, your
app should run exactly the same.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tyson Lowery [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:31 AM
To: [EMAIL PROTECTED]
Subject: WEB-INF with War Files

Hi all,
I have 3 different files for my web deployment - app.jar, app.war, and
app.properties.

Can I use a WEB-INF structure when using a war file?  I have placed the
war
file in Tomcat's webapps directory.  I have then created a directory
called
apps with a WEB-INF subdirectory, which has two more subdirectories -
classes and lib.  I have placed the app.jar in the lib directory, and
the
app.properties in the classes directory.  My application requires
app.properties to be in the classpath.  My application also needs to be
able
to read and write to this properties file.

The jar and properties file aren't visible to the JSP pages in the war
file.
I get all kinds of class not found errors.  When I move the jar to
common/lib/, but leave the properties file in classes, the jar is read
but
the properties file is not.  I can't place everything in the common
folders
anyhow, since I ultimately want to run multiple versions of the
software on
the same Tomcat instance.

Am I doing something wrong?  Do I need a web.xml in the WEB-INF
directory?
Any other helpful hints would be appreciated.

Tyson
[EMAIL PROTECTED]
www.simdynasty.com




-
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: Alternate password encyption code?

2003-06-05 Thread Jeff Sexton

Nice!  Thanks!


Jeff Sexton
The ODS Companies
[EMAIL PROTECTED]


On Tue, 3 Jun 2003, Extance, Paul wrote:
 We've already done this as part of the Jaffa (jaffa.sourceforge.net) open
 source project. For more details see...

 The Source Code @
 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jaffa/JaffaCore/source/java/o
 rg/jaffa/tomcat/realm/JDBCEncryptionRealm.java?rev=HEADcontent-type=text/vn
 d.viewcvs-markup

 The Jaffa Site @ http://jaffa.sf.net

 The JAR, if you want the easy way... is attached!

 This has been tested with most tomcat releases from 3.3a upto 4.1.24 and
 works. It supports two types of encryption signatures

 String xxx(String password) and
 String xxx(String password, String Userid) in case you want to use their
 user id as part of the key for the encryption

 You provide the class name and the method name in server.xml, and it looks
 for either method 1 or 2 and uses that to encrypt the password, before
 comparing it with the one in the database. It does not try to decrypt the
 database password, so a one way encryption algorithm can be supported.

 This Realm also allow you some other features like extending the where
 clause for the retrieve on user records, and the select for how to read the
 roles (incase you don't want to create additional views!)

 An example of how it can be used in server.xml is...

 Realm
 className  = org.jaffa.tomcat.realm.JDBCEncryptionRealm
 debug  = 0
 driverName = oracle.jdbc.driver.OracleDriver
 connectionURL  = jdbc:oracle:thin:@myhost.mydomain.com:1521:mydb
 connectionName = mydbuser
 connectionPassword = mydbpass
 userTable  = users
 userNameCol= user_id
 userCredCol= password
 userClause = password is not null and user_status='Active'
 userRoleTable  = user_roles
 roleNameCol= role_name
 encryptionClass= com.mycompany.services.Encryption
 encryptionMethod   = encrypt
 /

 Just make sure you but the attached JAR, and your JAR in the /server/lib
 directory, and put the database driver JAR(s) in the same place or in
 /common/lib

 Hope this helps...

 Paul Extance

 -Original Message-
 From: Phil Steitz [mailto:[EMAIL PROTECTED]
 Sent: Saturday, May 31, 2003 9:25 AM
 To: Tomcat Users List
 Subject: Re: Alternate password encyption code?

 Jeff Sexton wrote:
  On Thu, 29 May 2003, Raible, Matt wrote:
 
 Why don't you just have the JDBCRealm do it - add digest=SHA.
 
 
  I need something other than SHA, I need to use my own custom code for an
  encyrption method of my own that is not provided by JDBCRealm
 
 
 To programmatically do it using form-based authentication, I've used a
 LoginServlet that's mapped to auth in my login.jsp's form.  In this
 servlet, I encrypt the password and redirect to j_security_check - is
 that
 what you're looking for?
 
 
  Maybe.  I'll do some reading about form-based authentication.  I'm not
  sure.
 
  I'm after this because I already have set up a JDBCRealm based system,
  with BASIC authentication, and SHA, under Tomcat for both servlets and
  cocoon stuff.  Now I want to tie this together with another application
  that encypts passwords differently from any method available in JDBCRealm.
 
  I have the code for the encyption.  If I could simply drop this code into
  the user validation JDBCRealm does for me in Tomcat, it'd be great because
  the security would all work and I wouldn't have to create any
  user/password management pages of my own.

 Based on the documentation here

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Digested%20
 Passwords

 and a quick look at the sources here

 http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-tomcat-4.0/catalina/src
 /
 share/org/apache/catalina/realm/JDBCRealm.java?rev=HEADcontent-type=text/pl
 ain

 it does not look to me like you are going to be able to do this without
 hacking the JDBC Realm implementation.  The tomcat JDBC Realm
 implementation supports digested (*not* encrytped) passwords using
 java.security.MessageDigest to do the hashing.  This means that the
 hashing must be performed using one of the standard algorithms specified
 here
 http://java.sun.com/j2se/1.4.1/docs/guide/security/CryptoSpec.html#AppA

 You are probably best off going with one of the approaches that Matt has
 outlined if you want to serve login pages from the tomcat nodes.


 Phil



 
  If I can do this, I can tie Tomcat authentication to the password system
  my company has on other systems.
 
  Any tips are helpful!  I'm a little lost with this.
 
 
  -
  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: Different shutdown behavior of httpConnector in TC403 (graceful) and TC406 (reckless)

2003-06-05 Thread Shapira, Yoav

Howdy,
One possible way it to use Runtime#addShutdownHook(Thread hook) ...

Try to stay container-independent and therefore as portable as possible,
by not using tomcat-specific listeners, unless necessary.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 11:36 AM
To: Tomcat Users List
Subject: Re: Different shutdown behavior of httpConnector in TC403
(graceful) and TC406 (reckless)

If your need daemon threads to perform some type of cleanup. You'll
need to
- Create a non-deamon thread for the sole purpose of ensuring the JVM
stays
up
- Create a LifeCycleListener (or other appropriate listener) to listen
for
tomcat startup and shutdown events
- On shutdown, you'll need a synching method to kill the non-daemon
thread
once it knows all the daemon threads are done doing their thing

-Tim

[EMAIL PROTECTED] wrote:
 Okay, I see that point. Since the worker threads who perform the very
work to
 respond a request are deamons, there seems to be a hard and
unconfigured
timeout
 effective in TC406.

 TC403 and TC406 show different behaviors when stopping. Both would
require
 certain application coding, but which one is the correct  behavior,
that
 application programmers should rely on?





 Tim Funk [EMAIL PROTECTED]
 04.06.2003 12:03

 Bitte antworten an Tomcat Users List
[EMAIL PROTECTED]
 An: Tomcat Users List [EMAIL PROTECTED]
 Kopie:
 Thema:  Re: Different shutdown behavior of httpConnector in TC403
(graceful)
 and TC406 (reckless)


 There isn't any code (that I know of) in 4.0.6 that performs the
kill.

 The JVM will terminate if only daemon threads are running. If the
daemon
 threads need to perform more work during a shutdown, you need to make
sure
 one of them is non-daemon.

 -Tim

 [EMAIL PROTECTED] wrote:

When shutdown.sh is launched, TC performs a stop on all
HttpConnectors,
which
themselves will stop their HttpProcessors.

It seems to that -  while TC 403 waits gracefully for the work on a
request

 to

be finished (even forever) - TC 406 will wait 5 secs only and then
shutdown
without
any respect to the work done in the processors background threads.

I am afraid both ways can have undesired consequences. TC 403 will
sometimes
simply resist to shut down,  while in a TC406 shutdown the work done
in
daemon
threads will be interrupted without regards to the current states of
the
threads.

The behavior of TC 406 is fine when there are only requests that can
be

 handled

fast. On the other hand, with large transactions I would prefer the
behavior

 of

TC 403 and pervent the requests from lasting too long by implementing
configurable timeouts myself in the application code. Otherwise - or
as
it

 seems

to be implemented in TC406 - we would risk to interrupt vulnerable
operations,
aren't we?

So, my primary question is this one: Did I overlook a point, in
particular: Is
there a way to configure the shutdown behavior in TC 406 top wait for
the
background threads to finish?

There was discussion on that topic last year (
http://marc.theaimsgroup.com/?t=10445419061r=1w=2),
but I do not see where it had practical consequences in the code.

Thanks

Frank



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




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: mod_jk windows 2000 pro

2003-06-05 Thread JB97782




I actually installed apache several months ago. Yesterday I downloaded
apache 2.0.46 but the installation said I had to uninstall the old apache
first. I didn't want to have to re-configure everything all over again. It
took me a while to get apache to work the first time, I don't want to break
it.

Jim



   
  
  John Turner  
  
  [EMAIL PROTECTED]To:   Tomcat Users List [EMAIL 
PROTECTED]  
  turner.com  cc: 
  
   Subject:  Re: mod_jk windows 2000 pro   
  
  06/04/2003 11:47 
  
  AM   
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  





Any special reason you didn't use Apache 2.0.45?

John

On Wed, 4 Jun 2003 10:53:44 -0400, [EMAIL PROTECTED] wrote:





 Hi all, I am new to using apache and tomcat. I have installed both on a
 Windows 2000 pro PC. I installed apache v2.0.42 and tomcat v4.1.18.
 I followed John Turners instructions for getting mod_jk working
 (http://www.johnturner.com/howto/winxp-howto.html) but I can not get
 tomcat
 to serv pages on port 80. I have tried mod_jk-2.0.43 and mod_jk-2.0.42
 but
 neither lets me access jsp on port 80. But everything does work on port
 8080. Does anyone know of any other documentation for getting JK to work?

 Thanks!

 Jim


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





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




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



Re: Fail to load webapp's jar files using Tomcat 4.1.x

2003-06-05 Thread Jochen Schweflinghaus

Gee, yes it was the missing temp directory. This was not used in tomcat
4.0.x versions and of course I wasn't reading the 'Install and Run'
documentation too carefully. Now I really feel embarrassed having asked
that Question - hope you don't mind.

Thank you very much for you help !


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



Re: mod_jk windows 2000 pro

2003-06-05 Thread John Turner
The configuration should be the same...I can't think of anything in 
httpd.conf that would be different between the two versions.

You'll have to give us more info than it doesn't work.  What you're 
trying to do, your configuration files, what is the exact error message you 
receive, the content of log files, etc.

Other resources:  htpp://tomcatfaq.sourceforge.net, 
http://jakarta.apache.org

John

On Wed, 4 Jun 2003 11:56:09 -0400, [EMAIL PROTECTED] wrote:





I actually installed apache several months ago. Yesterday I downloaded
apache 2.0.46 but the installation said I had to uninstall the old apache
first. I didn't want to have to re-configure everything all over again. 
It
took me a while to get apache to work the first time, I don't want to 
break
it.

Jim



John Turner   
[EMAIL PROTECTED]To:   Tomcat Users List tomcat- 
[EMAIL PROTECTED]  turner.com  cc:
Subject:  Re: mod_jk windows 2000 pro 
06/04/2003 11:47  
AM
Please respond to 
Tomcat Users 
List







Any special reason you didn't use Apache 2.0.45?

John

On Wed, 4 Jun 2003 10:53:44 -0400, [EMAIL PROTECTED] wrote:





Hi all, I am new to using apache and tomcat. I have installed both on a
Windows 2000 pro PC. I installed apache v2.0.42 and tomcat v4.1.18.
I followed John Turners instructions for getting mod_jk working
(http://www.johnturner.com/howto/winxp-howto.html) but I can not get
tomcat
to serv pages on port 80. I have tried mod_jk-2.0.43 and mod_jk-2.0.42
but
neither lets me access jsp on port 80. But everything does work on port
8080. Does anyone know of any other documentation for getting JK to 
work?

Thanks!

Jim

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



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


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



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


Integrate JasperReport in JSP !

2003-06-05 Thread Mubaraka Arif
hello,

Its been few days , I downloaded JasperReports and JasperEdit. I copied 
all the required jars of JasperReport into Tomcat's /WEB-INF/lib. Aslo, 
I used JasperEdit to create the report design and it generated an xml 
file.

Now, JasperReports loads this xml file and allows to view the 
report. From this  I don't know how. Also, I was able to find very 
usefull links for this. 
Please, if any of you have any inputs to offer , I would really 
appreciate.

Thankyou in advance,

Mubaraka Arif
Software Developer
St Mary's University
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk windows 2000 pro

2003-06-05 Thread JB97782




I don't receive an error per se other than the The page cannot be found
message when I try to access the tomcat examples/jsp/index.html on port 80.
But when I explicitly use port 8080 everything works just fine. By that I
mean the html page loads and all the java examples are served and work
correctly. So I assume that the mod_jk I installed isn't doing whatever it
is that it is supposed to do. I think it is supposed to allow us to access
tomcat jsp's over port 80 through apache.
I had tried installing mod_jk-2.0.43, then I installed mod_jk-2.0.42.
Neither of them lets us access tomcat jsp's over port 80, but we can access
tomcat jsp's over port 8080.

I'm attaching apache2/conf/httpd.conf, Tomcat 4.1/conf/server.xml, Tomcat
4.1/conf/auto/mod_jk.conf, Tomcat 4.1/conf/jk/workers.properties.

If there isn't an easy answer, I would just as soon drop the issue. as I
said, we can access jsp's over port 8080 and that should be good enough..

Thanks for your help!

Jim

(See attached file: workers.properties)(See attached file: httpd.conf)(See
attached file: mod_jk.conf)(See attached file: server.xml)





   
  
  John Turner  
  
  [EMAIL PROTECTED]To:   Tomcat Users List [EMAIL 
PROTECTED]  
  turner.com  cc: 
  
   Subject:  Re: mod_jk windows 2000 pro   
  
  06/04/2003 12:03 
  
  PM   
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  





The configuration should be the same...I can't think of anything in
httpd.conf that would be different between the two versions.

You'll have to give us more info than it doesn't work.  What you're
trying to do, your configuration files, what is the exact error message you
receive, the content of log files, etc.

Other resources:  htpp://tomcatfaq.sourceforge.net,
http://jakarta.apache.org

John

On Wed, 4 Jun 2003 11:56:09 -0400, [EMAIL PROTECTED] wrote:





 I actually installed apache several months ago. Yesterday I downloaded
 apache 2.0.46 but the installation said I had to uninstall the old apache
 first. I didn't want to have to re-configure everything all over again.
 It
 took me a while to get apache to work the first time, I don't want to
 break
 it.

 Jim



 John Turner
 [EMAIL PROTECTED]To:   Tomcat Users List tomcat-
 [EMAIL PROTECTED]  turner.com  cc:
 Subject:  Re: mod_jk windows 2000 pro
 06/04/2003 11:47
 AM
 Please respond to
 Tomcat Users
 List








 Any special reason you didn't use Apache 2.0.45?

 John

 On Wed, 4 Jun 2003 10:53:44 -0400, [EMAIL PROTECTED] wrote:





 Hi all, I am new to using apache and tomcat. I have installed both on a
 Windows 2000 pro PC. I installed apache v2.0.42 and tomcat v4.1.18.
 I followed John Turners instructions for getting mod_jk working
 (http://www.johnturner.com/howto/winxp-howto.html) but I can not get
 tomcat
 to serv pages on port 80. I have tried mod_jk-2.0.43 and mod_jk-2.0.42
 but
 neither lets me access jsp on port 80. But everything does work on port
 8080. Does anyone know of any other documentation for getting JK to
 work?

 Thanks!

 Jim


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





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




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





--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-

Re: mod_jk windows 2000 pro

2003-06-05 Thread John Turner
I didn't see the attachments come through on the list.

There's probably an easy answer.

The first things I would check:

- apache.exe -t returns Syntax OK.  If it doesn't, tell us what it 
says.

- you have a workers file called workers.properties, and it has the 
contents and only the contents that are shown in my HOWTO

- you have a Connector configured in Tomcat's server.xml for port 8009.  
This is enabled by default, so unless you changed it, its there.

- you have a mod_jk.conf file that looks VERY similar to this:  
http://www.johnturner.com/howto/mod_jk_conf.html  If you don't, tell us how 
it differs.

- assuming your mod_jk.conf file is OK, then verify you have a line in 
httpd.conf that says Include /path/to/mod_jk.conf.  This is typically the 
last line in httpd.conf.

HTH

John

On Wed, 4 Jun 2003 11:30:24 -0500, [EMAIL PROTECTED] wrote:





I don't receive an error per se other than the The page cannot be found
message when I try to access the tomcat examples/jsp/index.html on port 
80.
But when I explicitly use port 8080 everything works just fine. By that I
mean the html page loads and all the java examples are served and work
correctly. So I assume that the mod_jk I installed isn't doing whatever 
it
is that it is supposed to do. I think it is supposed to allow us to 
access
tomcat jsp's over port 80 through apache.
I had tried installing mod_jk-2.0.43, then I installed mod_jk-2.0.42.
Neither of them lets us access tomcat jsp's over port 80, but we can 
access
tomcat jsp's over port 8080.

I'm attaching apache2/conf/httpd.conf, Tomcat 4.1/conf/server.xml, Tomcat
4.1/conf/auto/mod_jk.conf, Tomcat 4.1/conf/jk/workers.properties.
If there isn't an easy answer, I would just as soon drop the issue. as I
said, we can access jsp's over port 8080 and that should be good enough..
Thanks for your help!

Jim

(See attached file: workers.properties)(See attached file: httpd.conf) 
(See
attached file: mod_jk.conf)(See attached file: server.xml)





John Turner   
[EMAIL PROTECTED]To:   Tomcat Users List tomcat- 
[EMAIL PROTECTED]  turner.com  cc:
Subject:  Re: mod_jk windows 2000 pro 
06/04/2003 12:03  
PM
Please respond to 
Tomcat Users 
List







The configuration should be the same...I can't think of anything in
httpd.conf that would be different between the two versions.
You'll have to give us more info than it doesn't work.  What you're
trying to do, your configuration files, what is the exact error message 
you
receive, the content of log files, etc.

Other resources:  htpp://tomcatfaq.sourceforge.net,
http://jakarta.apache.org
John

On Wed, 4 Jun 2003 11:56:09 -0400, [EMAIL PROTECTED] wrote:





I actually installed apache several months ago. Yesterday I downloaded
apache 2.0.46 but the installation said I had to uninstall the old 
apache
first. I didn't want to have to re-configure everything all over again.
It
took me a while to get apache to work the first time, I don't want to
break
it.

Jim



John Turner
[EMAIL PROTECTED]To:   Tomcat Users List tomcat-
[EMAIL PROTECTED]  turner.com  cc:
Subject:  Re: mod_jk windows 2000 pro
06/04/2003 11:47
AM
Please respond to
Tomcat Users
List






Any special reason you didn't use Apache 2.0.45?

John

On Wed, 4 Jun 2003 10:53:44 -0400, [EMAIL PROTECTED] wrote:





Hi all, I am new to using apache and tomcat. I have installed both on a
Windows 2000 pro PC. I installed apache v2.0.42 and tomcat v4.1.18.
I followed John Turners instructions for getting mod_jk working
(http://www.johnturner.com/howto/winxp-howto.html) but I can not get
tomcat
to serv pages on port 80. I have tried mod_jk-2.0.43 and mod_jk-2.0.42
but
neither lets me access jsp on port 80. But everything does work on port
8080. Does anyone know of any other documentation for getting JK to
work?
Thanks!

Jim

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



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


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



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

connection pooling

2003-06-05 Thread Nadia Kunkov

Hi, I'm using Tomcat 4.0.4 and I'm wondering if setting up a connection pooling will 
give me a capability to set up some time intervals according to which my pool manager 
will check if connections are active and recycle them if they are not.  Does Tomcat 
have this capability? ( is there something like pool manager that goes aroung checking 
for connections?)
In the Jakarta documentation you can find how to set up and obtain the connection 
through the new datasource, but there is nothing about how to explicitly use this pool 
to check for stale connections and such.
Plese, let me know where I can find this.
Are there some free packages I can download and use?
Thank you very much for your help.
Nadia



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



RE: connection pooling

2003-06-05 Thread Shapira, Yoav

Howdy,
Tomcat uses DBCP by default for connection pooling, although you can use
other packages as well.  DBCP supports evicting idle connections with a
configurable timeout on how long the connection must be idle before
eviction.  DBCP also supports configurable validation queries (checking
for stale / bad connections).  See DBCP API JavaDocs at
http://jakarta.apache.org/commons/dbcp/apidocs/index.html

See Tomcat  DBCP (and other) connection pool configuration examples at:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: connection pooling


Hi, I'm using Tomcat 4.0.4 and I'm wondering if setting up a connection
pooling will give me a capability to set up some time intervals
according
to which my pool manager will check if connections are active and
recycle
them if they are not.  Does Tomcat have this capability? ( is there
something like pool manager that goes aroung checking for connections?)
In the Jakarta documentation you can find how to set up and obtain the
connection through the new datasource, but there is nothing about how
to
explicitly use this pool to check for stale connections and such.
Plese, let me know where I can find this.
Are there some free packages I can download and use?
Thank you very much for your help.
Nadia



-
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: mod_jk windows 2000 pro

2003-06-05 Thread JB97782




Hi John, everything looks fine, including the Syntax OK response to
apache.exe -t.
I don't know why the files didn't come thru. Here is my mod_jk.conf. There
were some lines that looked a little different than yours. For example my
Alias /manager line has two dots in the path name. Not sure why that is
there.



 begin mod_jk.conf 
## Auto generated on Tue Jun 03 16:57:40 EDT 2003##

IfModule !mod_jk.c
  LoadModule jk_module C:/Program Files/Apache
Group/Apache2/modules/mod_jk-2.0.42.dll
/IfModule

JkWorkersFile C:/Program Files/Apache Group/Tomcat 4.1
/conf/jk/workers.properties
JkLogFile C:/Program Files/Apache Group/Tomcat 4.1/logs/mod_jk.log

JkLogLevel emerg



VirtualHost localhost
ServerName localhost

 localhost:/manager 

# Static files
Alias /manager C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager

Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /manager/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /manager/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager/WEB-INF/
AllowOverride None
deny from all
/Directory

Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /manager/*  ajp13
JkMount /manager/html/*  ajp13
JkMount /manager/*.jsp  ajp13

 localhost:/examples 

# Static files
Alias /examples C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples

Directory C:/Program Files/Apache Group/Tomcat 4.1/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /examples/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples/WEB-INF/
AllowOverride None
deny from all
/Directory

Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13

 localhost:/tomcat-docs 

# Static files
Alias /tomcat-docs C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs

Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /tomcat-docs/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs/WEB-INF/
AllowOverride None
deny from all
/Directory

Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /tomcat-docs/*.jsp  ajp13

 localhost:/webdav 

# Static files
Alias /webdav C:/Program Files/Apache Group/Tomcat 4.1/webapps/webdav

Directory C:/Program Files/Apache Group/Tomcat 4.1/webapps/webdav
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /webdav/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /webdav/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/webdav/WEB-INF/

Connectors mod_webapp vs mod_jk2

2003-06-05 Thread Ronnie Tartar
I successfully implented the mod_webapp connector, thanks especially for the document 
on:

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

But I could not successfully install the mod_jk2 connector with multiple ssl vhosts 
(IP Based).
I did get it working with the default install so the compile and code is right, I 
think I may just be missing something in the config, either apache or tomcat.

Is there a way to use the mod_jk2 connector with the following configuration, 
especially the appbase parameter?  Also, is there a way to map the connectors onto the 
vhosts in apache?

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8019 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=/apps/tomcat/webapps/mps
 acceptCount=10 debug=0/

Thank you

Re: mod_jk windows 2000 pro

2003-06-05 Thread John Turner
OK.  Please change JkLogLevel to debug.  Stop Apache.  Stop Tomcat.  Wait 
about 10 or 15 seconds.  Start Tomcat, wait another 10 or 15 seconds.  
Start Apache.

Then request one of the examples JSP on port 80, and let us know what the 
lines in mod_jk.log and Apache's log files say.  Apache's logs are under 
the Apache home directory, in the logs subdirectory.

John

On Wed, 4 Jun 2003 12:49:07 -0400, [EMAIL PROTECTED] wrote:





Hi John, everything looks fine, including the Syntax OK response to
apache.exe -t.
I don't know why the files didn't come thru. Here is my mod_jk.conf. 
There
were some lines that looked a little different than yours. For example my
Alias /manager line has two dots in the path name. Not sure why that is
there.



 begin mod_jk.conf 
## Auto generated on Tue Jun 03 16:57:40 EDT 2003##
IfModule !mod_jk.c
LoadModule jk_module C:/Program Files/Apache
Group/Apache2/modules/mod_jk-2.0.42.dll
/IfModule
JkWorkersFile C:/Program Files/Apache Group/Tomcat 4.1
/conf/jk/workers.properties
JkLogFile C:/Program Files/Apache Group/Tomcat 4.1/logs/mod_jk.log
JkLogLevel emerg



VirtualHost localhost
ServerName localhost
 localhost:/manager 

# Static files
Alias /manager C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /manager/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /manager/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager/WEB-INF/
AllowOverride None
deny from all
/Directory
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/../server/webapps/manager/META-INF/
AllowOverride None
deny from all
/Directory
JkMount /manager/*  ajp13
JkMount /manager/html/*  ajp13
JkMount /manager/*.jsp  ajp13
 localhost:/examples 

# Static files
Alias /examples C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples
Directory C:/Program Files/Apache Group/Tomcat 4.1/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /examples/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples/WEB-INF/
AllowOverride None
deny from all
/Directory
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/examples/META-INF/
AllowOverride None
deny from all
/Directory
JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13
 localhost:/tomcat-docs 

# Static files
Alias /tomcat-docs C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /tomcat-docs/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /tomcat-docs/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs/WEB-INF/
AllowOverride None
deny from all
/Directory
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/tomcat-docs/META-INF/
AllowOverride None
deny from all
/Directory
JkMount /tomcat-docs/*.jsp  ajp13

 localhost:/webdav 

# Static files
Alias /webdav C:/Program Files/Apache Group/Tomcat 4.1/webapps/webdav
Directory C:/Program Files/Apache Group/Tomcat 4.1/webapps/webdav
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /webdav/WEB-INF/*
AllowOverride None
deny from all
/Location
Location /webdav/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case
matches
#
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/webdav/WEB-INF/
AllowOverride None
deny from all
/Directory
Directory C:/Program Files/Apache Group/Tomcat 4.1
/webapps/webdav/META-INF/
AllowOverride None
deny from all
/Directory
JkMount /webdav/*.jsp  ajp13


Re: mod_jk windows 2000 pro

2003-06-05 Thread JB97782




apache error.log:

[Wed Jun 04 12:17:04 2003] [error] [client 10.126.9.25] File does not
exist: C:/Program Files/Apache Group/Apache2/htdocs/examples
[Wed Jun 04 13:01:28 2003] [notice] Parent: Received shutdown signal --
Shutting down the server.
[Wed Jun 04 13:01:28 2003] [notice] Child 636: Exit event signaled. Child
process is ending.
[Wed Jun 04 13:01:29 2003] [notice] Child 636: Released the start mutex
[Wed Jun 04 13:01:31 2003] [notice] Child 636: Waiting for 250 worker
threads to exit.
[Wed Jun 04 13:01:31 2003] [notice] Child 636: All worker threads have
exited.
[Wed Jun 04 13:01:31 2003] [notice] Child 636: Child process is exiting
[Wed Jun 04 13:01:31 2003] [notice] Parent: Child process exited
successfully.
[Wed Jun 04 13:05:38 2003] [notice] Parent: Created child process 296
[Wed Jun 04 13:05:39 2003] [notice] Child 296: Child process is running
[Wed Jun 04 13:05:39 2003] [notice] Child 296: Acquired the start mutex.
[Wed Jun 04 13:05:39 2003] [notice] Child 296: Starting 250 worker threads.
[Wed Jun 04 13:06:33 2003] [error] [client 10.126.9.25] File does not
exist: C:/Program Files/Apache Group/Apache2/htdocs/examples


apache access.log:

10.126.9.25 - - [04/Jun/2003:09:39:30 -0400] OPTIONS / HTTP/1.1 200 0
10.126.9.25 - - [04/Jun/2003:09:39:30 -0400] PROPFIND
/c-dstbostonwebserver HTTP/1.1 405 314
10.126.9.25 - - [04/Jun/2003:12:17:04 -0400] GET /examples/jsp/index.html
HTTP/1.1 404 289
10.126.9.25 - - [04/Jun/2003:12:23:54 -0400] OPTIONS / HTTP/1.1 200 0
10.126.9.25 - - [04/Jun/2003:12:23:54 -0400] PROPFIND
/C-DSTBostonWebServer HTTP/1.1 405 314
10.126.9.25 - - [04/Jun/2003:13:06:33 -0400] GET /examples/jsp/index.html
HTTP/1.1 404 289


tomcat mod_jk.log:

[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (88)]: Into wc_open
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (224)]: Into build_worker_map,
creating 1 workers
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (230)]: build_worker_map, creating
worker ajp13
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (260)]: Factory :ajp12
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (260)]: Factory :ajp13
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (164)]: wc_create_worker, about to
create instance ajp13 of ajp13
[Wed Jun 04 13:05:38 2003]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (173)]: wc_create_worker, about to
validate and init ajp13
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1206)]: Into
jk_worker_t::validate
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1226)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1254)]: Into
jk_worker_t::init
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1274)]: In jk_worker_t::init,
setting socket timeout to 0
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (189)]: wc_create_worker, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (240)]: build_worker_map, removing
old ajp13 worker
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (252)]: build_worker_map, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (111)]: wc_open, done 1
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (118)]: Into wc_close
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (201)]: close_workers got -1
workers to destroy
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (120)]: wc_close, done
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (88)]: Into wc_open
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (224)]: Into build_worker_map,
creating 1 workers
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (230)]: build_worker_map, creating
worker ajp13
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (260)]: Factory :ajp12
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (260)]: Factory :ajp13
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (164)]: wc_create_worker, about to
create instance ajp13 of ajp13
[Wed Jun 04 13:05:38 2003]  [jk_ajp13_worker.c 

SSL Tomcat with proxy

2003-06-05 Thread Daniel Zhang
Hi, All -

I've installed and configured Tomcat 4.1.12 with SSL(self-signed 
certificates) on two Linux RedHat 8.0 machines to
do some SOAP stuff. It works well(those two Linux machines are INSIDE 
company's Intranet).  However, when I
installed SSL on a public domain Linux machine, I can't connect to it 
via HTTPS, it says time-out. I didn't find any
errors in log. But HTTP works fine(port 80 vs. 443). 

Compare with the two situations, the only thing different is we used 
automatically configuration script in our LAN's
setting(IE browser). Therefore for test servers inside Intranet, they 
communicate with each other directly. But for public
domain, the traffic goes through some proxy and cause the problem.

Anyone knows how to fix it? Million thanks!

-Daniel

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


RE: Oracle Type 4 Driver

2003-06-05 Thread Schwartz, David (CHR)
here's my web.xml...

web-app
servlet
servlet-nameHelloWorld/servlet-name
servlet-classHelloWorld/servlet-class
/servlet

servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/HelloWorld/url-pattern
/servlet-mapping

taglib
taglib-urihttp://java.sun.com/jstl/core/taglib-uri
taglib-location/WEB-INF/c.tld/taglib-location
/taglib

taglib
taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
taglib-location/WEB-INF/sql.tld/taglib-location
/taglib
 
/web-app



here's my index.jsp...

!doctype html public -//w3c//dtd html 4.0 transitional//en
http://www.w3.org/TR/REC-html40/strict.dtd;

[EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core; %

html
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
titlejsp test%= application.getServerInfo() %/title


body

!-- Body --
table border = 1 
trtd align=left valign=top JSP test with TomCat in the
myfirst folder structure.br
p class=codeTest class code tag.
/td
/tr /td

/tr
/table

/body
/html


This line

[EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core; %

gives me this error


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.
[javac] C:\tomcat\work\Standalone\localhost\myfirst\index_jsp.java:42:
illegal character: \64
[javac]  @taglib prefix=c uri=http://java.sun.com/jstl/core; 
[javac]  ^
[javac] 1 error



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
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:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at

RE: I cannot get Tomcat4.1.24 to run as a service using JRockit. Has anyone done this?

2003-06-05 Thread Victor Popiol
Hi Brendan. I have the same problem. Have you found a solution?

Regards
Victor


-Original Message-
From: Brendan [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2003 3:40 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: I cannot get Tomcat4.1.24 to run as a service using JRockit.
Has anyone done this?


 I'm fairly impressed with the JRockit8.1 JVM but I can't seem to get
 Tomcat to stay alive as a service when trying to subsitute in
 JRockit. Using tomcat.exe to install JRockit as a service seems to
 work, but when you start the service it quickly dies. I think it does
 start up briefly because the correct log files are written.

There is mention of a problem using the service I think:
http://wrapper.tanukisoftware.org/doc/english/release-notes.html but
I'm not sure if this is the same thing as tomcat.exe.

I've searched far and wide for the answer. I have tried adding
JRockit's -Xnohup command line param but that doesn't seem to help.


Has anyone done this successfully?

thanks,
Brendan


-
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 manager deploy and undeploy

2003-06-05 Thread Phillip Qin
Did anyone solve Cannot remove document base for path /mywebapp?

 

My environment is

 

Redhat 7.2

Apache 2.0.46

Tomcat 4.1.24

J2sdk 1.4.1_01

 

I deployed my webapp using Catalina-ant Deploy task. War file was uploaded
to work/Standalone/myhost/manager and unpacked into webapps/mywebapp. I was
trying to undeploy it using Undeploy task and got the above error message. I
also tested deploy/undeploy on Windows 2000. Same issue.

 

I searched the whole mailing list archive but could not find a answer. I saw
someone logged it to Buzilla. Is it really a bug?

 

Regards,

 

 

 

PQ

 

The difference between 'involvement' and 'commitment'

is like an eggs-and-ham breakfast: the chicken was

'involved' - the pig was 'committed'.

 



Logging help please

2003-06-05 Thread Tim Shaw
Hi,

Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
sun.com, and tried all sorts before having to back out and go to a 
wrapper around ServletContext.log (which doesn't give me levels and 
files etc). I was hoping to use the JDK14 Logger FileLogger.

I'd appreciate a sanity check on the below - thanks for your time.

I have 4 co-operating web apps, each of which extends their Controller 
servlet from a class in a common jar file (deployed in WEB-INF/lib with 
each app).

I would like to be able to 'tune' (outside the .war file) the logging 
levels, filenames etc.

Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
no difference (and seems as if it would be 'global').

I tried loading a log properties file using loadResourceAsStream in the 
Controller super-class - which seems better (in that it does some of the 
logging, but I can't seem to get it to log 'finer' than INFO). This also 
creates multiple log files (following the pattern %u.log as per JDK 
1.4 logging). I am happy to provide the properties file-name in the 
web.xml as an init parameter - seems sound.

Class Loading etc. :

For singletons (e.g. the Controller servlet super-class instances), I 
would assume that initialising the log as a static variable would result 
in different Factories for each app as it is a different class-loader.

When I have multiple instances of a class, however, (I'm using 
Command/Action pattern) should I use a static variable (write contention 
causes the multiple files mentioned above?)? Is there a distinction 
between logging to multiple instances of the  FileLogger as opposed to a 
single instance? Is there a reason to optimise the calls to get a Logger 
from the Factory - or is it OK to just grab one as and when?

Sorry for the length.

Regards

tim





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


Re: tomcat manager deploy and undeploy

2003-06-05 Thread Jim Lynch
I do an ant remove before I do the deploy.  That works for me.

Jim.

Phillip Qin wrote:
 
 Did anyone solve Cannot remove document base for path /mywebapp?


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



Re: changing tomcat configuration on the fly

2003-06-05 Thread Tim Shaw
I wonder whether you actually want this approach at all.

Depending on why you want to modify JNDI entries, and whether this is 
for the entire server or just a specific web-app ...

If I need to change my JNDI entries (generally values and additions 
during development), I modify the context.xml file for the app (in the 
META-INF directory) and redeploy the app. This seems to automagically 
modify the server.xml file for me, and I can keep the changes in my web 
app CVS.

Perhaps your needs are more complex ...

G'luck

tim

Tim Funk wrote:
There is no way to change web.xml on the fly. Except by -
- putting a new web.xml in its place
- stop the app
- start the app
As for changes to server.xml. This can be done via JMX. See the code to 
the admin app on how make changes.

-Tim

Adi Katz wrote:

Hello,

I am interested in changing the server.xml and web.xml files through
servlets and then reload them.
So for example I can add JNDI entries in server.xml without the nedd to
stop/start tomcat again.
Something very similar is done in the admin app ( shipped with tomcat ).
Does anybody have a code example or some tips on how to do it ??
Thanks,
Adi
 


-
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: Logging help please

2003-06-05 Thread Phillip Qin
Commons-logging is a wrapper. Try use log4j or jdk 1.4 logger for the
underlying logger

-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 1:42 PM
To: Tomcat Users List
Subject: Logging help please

Hi,

Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
sun.com, and tried all sorts before having to back out and go to a 
wrapper around ServletContext.log (which doesn't give me levels and 
files etc). I was hoping to use the JDK14 Logger FileLogger.

I'd appreciate a sanity check on the below - thanks for your time.

I have 4 co-operating web apps, each of which extends their Controller 
servlet from a class in a common jar file (deployed in WEB-INF/lib with 
each app).

I would like to be able to 'tune' (outside the .war file) the logging 
levels, filenames etc.

Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
no difference (and seems as if it would be 'global').

I tried loading a log properties file using loadResourceAsStream in the 
Controller super-class - which seems better (in that it does some of the 
logging, but I can't seem to get it to log 'finer' than INFO). This also 
creates multiple log files (following the pattern %u.log as per JDK 
1.4 logging). I am happy to provide the properties file-name in the 
web.xml as an init parameter - seems sound.

Class Loading etc. :

For singletons (e.g. the Controller servlet super-class instances), I 
would assume that initialising the log as a static variable would result 
in different Factories for each app as it is a different class-loader.

When I have multiple instances of a class, however, (I'm using 
Command/Action pattern) should I use a static variable (write contention 
causes the multiple files mentioned above?)? Is there a distinction 
between logging to multiple instances of the  FileLogger as opposed to a 
single instance? Is there a reason to optimise the calls to get a Logger 
from the Factory - or is it OK to just grab one as and when?

Sorry for the length.

Regards

tim





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


Taglib declaration - illegal character \64 (was Re: Oracle Type 4 Driver)

2003-06-05 Thread Jason Bainbridge
On Thu, 5 Jun 2003 01:16, Schwartz, David (CHR) wrote:
  [javac] C:\tomcat\work\Standalone\localhost\myfirst\index_jsp.java:42:
 illegal character: \64
     [javac] [EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core;
     [javac]  ^
     [javac] 1 error

That's very strange I was going to suggest that you had the correct as at 
symbol but Character 64 is definitely the as at symbol in the ISO 8859-1 
character set so that doesn't make sense. 

I've always used single quotes and put a space between %@ and taglib in my 
taglib declarations but I tried doing it your way and didn't get the same 
problem as you are.

Can anyone else shine some light on this?

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



RE: tomcat manager deploy and undeploy

2003-06-05 Thread Phillip Qin
But remove will not remove your Context entry in server.xml.

Another question:

When I use ant remove, struts.jar in /mywebapp/WEB-INF/lib is not deleted.
Everything else is cleared.

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 1:40 PM
To: Tomcat Users List
Subject: Re: tomcat manager deploy and undeploy

I do an ant remove before I do the deploy.  That works for me.

Jim.

Phillip Qin wrote:
 
 Did anyone solve Cannot remove document base for path /mywebapp?


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


Re: Counting Threads

2003-06-05 Thread Billy Ng
Too bad, I am using Tomcat 4

Billy Ng

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:57 AM
Subject: Re: Counting Threads


 Tomcat 5 will let you do this via JMX.

 -Tim

 Billy Ng wrote:
  Hi folks,
 
  Would anybody tell me how to monitor  the count of the exisitng threads
in my java app because I get the All Threads are busy, waiting error from
tomcat.
 
  Billy Ng


 -
 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: Taglib declaration - illegal character \64 (was Re: Oracle Type 4 Driver)

2003-06-05 Thread Schwartz, David (CHR)
Jason, 
When I do...

%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %

I get...

org.apache.jasper.JasperException: This absolute uri
(http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the
jar files deployed with this application
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:105)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430
)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154
)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
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:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:536)


-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 1:52 PM
To: Tomcat Users List
Subject: Taglib declaration - illegal character \64 (was Re: Oracle Type
4 Driver)


On Thu, 5 Jun 2003 01:16, Schwartz, David (CHR) wrote:
  [javac] C:\tomcat\work\Standalone\localhost\myfirst\index_jsp.java:42:
 illegal character: \64
     [javac] [EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core;
     [javac]  ^
     [javac] 1 error

That's very strange I was going to suggest that you 

Re: Taglib declaration - illegal character \64 (FAQ)

2003-06-05 Thread Jason Bainbridge
Can you try creating a temp directory in your CATALINA_HOME and then try 
again? Seems it is a common cause of similar errors as I just read here:  

http://www.thejspbook.com/faq/details.jsp?id=1023

Not exactly the kind of thing that one would look for with such an error but 
hopefully it works. :)

Regards,
-- 
Jason Bainbridge
http://jblinux.org


On Thu, 5 Jun 2003 02:06, Schwartz, David (CHR) wrote:
 Jason,
 When I do...

 %@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %

 I get...

 org.apache.jasper.JasperException: This absolute uri
 (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the
 jar files deployed with this application


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



RE: tomcat manager deploy and undeploy

2003-06-05 Thread Phillip Qin
Remove didn't delete struts.jar only happens on Windows box. Linux is OK.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 2:03 PM
To: 'Tomcat Users List'
Subject: RE: tomcat manager deploy and undeploy

But remove will not remove your Context entry in server.xml.

Another question:

When I use ant remove, struts.jar in /mywebapp/WEB-INF/lib is not deleted.
Everything else is cleared.

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 1:40 PM
To: Tomcat Users List
Subject: Re: tomcat manager deploy and undeploy

I do an ant remove before I do the deploy.  That works for me.

Jim.

Phillip Qin wrote:
 
 Did anyone solve Cannot remove document base for path /mywebapp?


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


RE: changing tomcat configuration on the fly

2003-06-05 Thread Adi Katz
Hello Tim,

I have only one app and users should be able to register a database with the
app.
so:
1) I dont know in advance what kind of data base it will be
2) data supplied by the end user regarding the database / url etc. should be
written to the right files ( server.xml ).
3) In order for tomcat to update according to the changes made... the all
thing need to restart and I cant relay on somebodey going to the server and
stop-start tomcat.

Would like to hear any ideas /examples.

Adi

-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 18:48
To: Tomcat Users List
Subject: Re: changing tomcat configuration on the fly


I wonder whether you actually want this approach at all.

Depending on why you want to modify JNDI entries, and whether this is
for the entire server or just a specific web-app ...

If I need to change my JNDI entries (generally values and additions
during development), I modify the context.xml file for the app (in the
META-INF directory) and redeploy the app. This seems to automagically
modify the server.xml file for me, and I can keep the changes in my web
app CVS.

Perhaps your needs are more complex ...

G'luck

tim

Tim Funk wrote:
 There is no way to change web.xml on the fly. Except by -
 - putting a new web.xml in its place
 - stop the app
 - start the app

 As for changes to server.xml. This can be done via JMX. See the code to
 the admin app on how make changes.

 -Tim

 Adi Katz wrote:

 Hello,

 I am interested in changing the server.xml and web.xml files through
 servlets and then reload them.
 So for example I can add JNDI entries in server.xml without the nedd to
 stop/start tomcat again.
 Something very similar is done in the admin app ( shipped with tomcat ).
 Does anybody have a code example or some tips on how to do it ??

 Thanks,
 Adi




 -
 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: Logging help please

2003-06-05 Thread Tim Shaw
Sorry, but that was what I tried first. My problem seems to be with the 
mechanics of using JDK1.4 logging within Tomcat (with or without the 
commons wrapper) - I can get it to work fine outside (where I 'control' 
the VM, ClassLoader etc).

Thanks

tim

Phillip Qin wrote:
Commons-logging is a wrapper. Try use log4j or jdk 1.4 logger for the
underlying logger
-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 1:42 PM
To: Tomcat Users List
Subject: Logging help please

Hi,

Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
sun.com, and tried all sorts before having to back out and go to a 
wrapper around ServletContext.log (which doesn't give me levels and 
files etc). I was hoping to use the JDK14 Logger FileLogger.

I'd appreciate a sanity check on the below - thanks for your time.

I have 4 co-operating web apps, each of which extends their Controller 
servlet from a class in a common jar file (deployed in WEB-INF/lib with 
each app).

I would like to be able to 'tune' (outside the .war file) the logging 
levels, filenames etc.

Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
no difference (and seems as if it would be 'global').

I tried loading a log properties file using loadResourceAsStream in the 
Controller super-class - which seems better (in that it does some of the 
logging, but I can't seem to get it to log 'finer' than INFO). This also 
creates multiple log files (following the pattern %u.log as per JDK 
1.4 logging). I am happy to provide the properties file-name in the 
web.xml as an init parameter - seems sound.

Class Loading etc. :

For singletons (e.g. the Controller servlet super-class instances), I 
would assume that initialising the log as a static variable would result 
in different Factories for each app as it is a different class-loader.

When I have multiple instances of a class, however, (I'm using 
Command/Action pattern) should I use a static variable (write contention 
causes the multiple files mentioned above?)? Is there a distinction 
between logging to multiple instances of the  FileLogger as opposed to a 
single instance? Is there a reason to optimise the calls to get a Logger 
from the Factory - or is it OK to just grab one as and when?

Sorry for the length.

Regards

tim





-
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: Taglib declaration - illegal character \64 (FAQ)

2003-06-05 Thread Schwartz, David (CHR)
yes. I have the temp folder already.

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:12 PM
To: Tomcat Users List
Subject: Re: Taglib declaration - illegal character \64 (FAQ)


Can you try creating a temp directory in your CATALINA_HOME and then try 
again? Seems it is a common cause of similar errors as I just read here:  

http://www.thejspbook.com/faq/details.jsp?id=1023

Not exactly the kind of thing that one would look for with such an error but

hopefully it works. :)

Regards,
-- 
Jason Bainbridge
http://jblinux.org


On Thu, 5 Jun 2003 02:06, Schwartz, David (CHR) wrote:
 Jason,
 When I do...

 %@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %

 I get...

 org.apache.jasper.JasperException: This absolute uri
 (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or
the
 jar files deployed with this application


-
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_jk windows 2000 pro

2003-06-05 Thread John Turner
Apache isn't mapping your VirtualHost, and its corresponding Alias of the 
/examples directory.  Thus, the JkMount isn't getting picked up for 
/examples, either.

Are you sure that your mod_jk.conf file is being included in Apache's 
httpd.conf?  Do you have any other VirtualHost definitions in Apache's 
httpd.conf file, perhaps leftover from previous configurations?  
VirtualHost definitions that would conflict with those in httpd.conf?

John

On Wed, 4 Jun 2003 13:10:25 -0400, [EMAIL PROTECTED] wrote:





apache error.log:

[Wed Jun 04 12:17:04 2003] [error] [client 10.126.9.25] File does not
exist: C:/Program Files/Apache Group/Apache2/htdocs/examples
[Wed Jun 04 13:01:28 2003] [notice] Parent: Received shutdown signal --
Shutting down the server.
[Wed Jun 04 13:01:28 2003] [notice] Child 636: Exit event signaled. Child
process is ending.
[Wed Jun 04 13:01:29 2003] [notice] Child 636: Released the start mutex
[Wed Jun 04 13:01:31 2003] [notice] Child 636: Waiting for 250 worker
threads to exit.
[Wed Jun 04 13:01:31 2003] [notice] Child 636: All worker threads have
exited.
[Wed Jun 04 13:01:31 2003] [notice] Child 636: Child process is exiting
[Wed Jun 04 13:01:31 2003] [notice] Parent: Child process exited
successfully.
[Wed Jun 04 13:05:38 2003] [notice] Parent: Created child process 296
[Wed Jun 04 13:05:39 2003] [notice] Child 296: Child process is running
[Wed Jun 04 13:05:39 2003] [notice] Child 296: Acquired the start mutex.
[Wed Jun 04 13:05:39 2003] [notice] Child 296: Starting 250 worker 
threads.
[Wed Jun 04 13:06:33 2003] [error] [client 10.126.9.25] File does not
exist: C:/Program Files/Apache Group/Apache2/htdocs/examples

apache access.log:

10.126.9.25 - - [04/Jun/2003:09:39:30 -0400] OPTIONS / HTTP/1.1 200 0
10.126.9.25 - - [04/Jun/2003:09:39:30 -0400] PROPFIND
/c-dstbostonwebserver HTTP/1.1 405 314
10.126.9.25 - - [04/Jun/2003:12:17:04 -0400] GET 
/examples/jsp/index.html
HTTP/1.1 404 289
10.126.9.25 - - [04/Jun/2003:12:23:54 -0400] OPTIONS / HTTP/1.1 200 0
10.126.9.25 - - [04/Jun/2003:12:23:54 -0400] PROPFIND
/C-DSTBostonWebServer HTTP/1.1 405 314
10.126.9.25 - - [04/Jun/2003:13:06:33 -0400] GET 
/examples/jsp/index.html
HTTP/1.1 404 289

tomcat mod_jk.log:

[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (88)]: Into wc_open
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (224)]: Into build_worker_map,
creating 1 workers
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (230)]: build_worker_map, 
creating
worker ajp13
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (260)]: Factory :ajp12
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (260)]: Factory :ajp13
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (164)]: wc_create_worker, about 
to
create instance ajp13 of ajp13
[Wed Jun 04 13:05:38 2003]  [jk_ajp13_worker.c (108)]: Into
ajp13_worker_factory
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (173)]: wc_create_worker, about 
to
validate and init ajp13
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1206)]: Into
jk_worker_t::validate
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1226)]: In
jk_worker_t::validate for worker ajp13 contact is localhost:8009
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1254)]: Into
jk_worker_t::init
[Wed Jun 04 13:05:38 2003]  [jk_ajp_common.c (1274)]: In 
jk_worker_t::init,
setting socket timeout to 0
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (189)]: wc_create_worker, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (240)]: build_worker_map, 
removing
old ajp13 worker
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (252)]: build_worker_map, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (111)]: wc_open, done 1
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (118)]: Into wc_close
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (201)]: close_workers got -1
workers to destroy
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (120)]: wc_close, done
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (190)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (441)]: Into
jk_uri_worker_map_t::uri_worker_map_close
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (172)]: Into
jk_uri_worker_map_t::uri_worker_map_alloc
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (375)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (396)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0
[Wed Jun 04 13:05:38 2003]  [jk_uri_worker_map.c (422)]:
jk_uri_worker_map_t::uri_worker_map_open, done
[Wed Jun 04 13:05:38 2003]  [jk_worker.c (88)]: Into wc_open
[Wed Jun 04 

RE: Logging help please

2003-06-05 Thread Phillip Qin
- Can you define different levels for different app in your
logging.properties?
- I don't think change properties on the fly will affect the loaded apps.
- I never have commons-logging working with my log4j.

-Original Message-
From: Tim Shaw [mailto:[EMAIL PROTECTED] 
Sent: June 4, 2003 2:23 PM
To: Tomcat Users List
Subject: Re: Logging help please

Sorry, but that was what I tried first. My problem seems to be with the 
mechanics of using JDK1.4 logging within Tomcat (with or without the 
commons wrapper) - I can get it to work fine outside (where I 'control' 
the VM, ClassLoader etc).

Thanks

tim

Phillip Qin wrote:
 Commons-logging is a wrapper. Try use log4j or jdk 1.4 logger for the
 underlying logger
 
 -Original Message-
 From: Tim Shaw [mailto:[EMAIL PROTECTED] 
 Sent: June 4, 2003 1:42 PM
 To: Tomcat Users List
 Subject: Logging help please
 
 Hi,
 
 Does anyone have a link to a FAQ or HOW-TO for using commons-logging 
 with Tomcat 4.1.x please? I've read the obvious ones at apache.org and 
 sun.com, and tried all sorts before having to back out and go to a 
 wrapper around ServletContext.log (which doesn't give me levels and 
 files etc). I was hoping to use the JDK14 Logger FileLogger.
 
 I'd appreciate a sanity check on the below - thanks for your time.
 
 I have 4 co-operating web apps, each of which extends their Controller 
 servlet from a class in a common jar file (deployed in WEB-INF/lib with 
 each app).
 
 I would like to be able to 'tune' (outside the .war file) the logging 
 levels, filenames etc.
 
 Modifying the $JAVA_HOME/jre/lib/logging.properties file seems to make 
 no difference (and seems as if it would be 'global').
 
 I tried loading a log properties file using loadResourceAsStream in the 
 Controller super-class - which seems better (in that it does some of the 
 logging, but I can't seem to get it to log 'finer' than INFO). This also 
 creates multiple log files (following the pattern %u.log as per JDK 
 1.4 logging). I am happy to provide the properties file-name in the 
 web.xml as an init parameter - seems sound.
 
 Class Loading etc. :
 
 For singletons (e.g. the Controller servlet super-class instances), I 
 would assume that initialising the log as a static variable would result 
 in different Factories for each app as it is a different class-loader.
 
 When I have multiple instances of a class, however, (I'm using 
 Command/Action pattern) should I use a static variable (write contention 
 causes the multiple files mentioned above?)? Is there a distinction 
 between logging to multiple instances of the  FileLogger as opposed to a 
 single instance? Is there a reason to optimise the calls to get a Logger 
 from the Factory - or is it OK to just grab one as and when?
 
 Sorry for the length.
 
 Regards
 
 tim
 
 
 
 
 
 -
 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]


  1   2   >