RE: Cant get 4.1.10 to run on Win2K

2002-09-13 Thread Miguel Angel Mulero Martinez

I have put some similar messages. Are you trying to execute Tomcat as a
Service? This problem only happens to me when I start it like a service. Try
to start it from the console with catalina start and tell to us.



-Mensaje original-
De: Mike Warne [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de septiembre de 2002 1:51
Para: [EMAIL PROTECTED]
Asunto: Cant get 4.1.10 to run on Win2K

Hi I have tried unsuccessfully to get Tomcat to run under win2K

1st try was using j2re1.4 and installing the LE .exe.

The install program pauses at the point where it says copying to:
tomcat4.1/common/lib and then says:  copy failed.

However the install then completes.  When I open the browser to
localhost:8080  I get a org.apache.jasper.JasperException: Unable to compile
class for JSP
An error occurred at line: -1 in the jsp file: null

Same goes for any of the WAR examples etc.

2nd then tried the FULL edition (not the LE) -- same problem. :(

3rd I tried installing the full edition again using JDK1.3.  This time the
copy does not fail.  But now I have this error:
---
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] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat
4.1\work\Standalone\localhost\_\index_jsp.java:266:
handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext
cannot be applied to (java.lang.Throwable)
  if (pageContext != null) pageContext.handlePageException(t);
  ^
1 error


at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:120)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)

Any Ideas?

Thanks,
Mike.

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


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




Tomcat4-4.1.10 Startup Issue (LINUX)

2002-09-13 Thread Ben Hamilton


Installation:
I've loaded java from the binary install application for j2sdk from the
java.sun.com site. I've modified the /etc/profile to include the
CLASSPATH listed below.
In a directory with three rpms:
tomcat4-4.1.10-full.1jpp.noarch.rpm
tomcat4-admin-webapps-4.1.10-full.1jpp.noarch.rpm
tomcat4-webapps-4.1.10-full.1jpp.noarch.rpm
I've issued the following command.
rpm -i *.rpm
Results in an installation without errors given.

I've created the /etc/java.conf with the line:
JAVA_HOME=/usr/java
/usr/java/bin is the bin directory from the jdk that contains java,
javac and the rest of the binaries for the jdk. /usr/java/lib/ext
contains the .jar files distributed with the jdk and jre.

PROBLEM:
When issuing the command 'tomcat4 run' the error below is generated. To
me there seem to be two problems: 1) ERROR reading
/var/tomcat4/conf/server.xml. I've made sure that the tomcat4 user owns
the files in /var/tomcat4 and /etc/tomcat4 - besides file permissions
what does tomcat need to read the file? 2) The remaining portion of the
error seems to indicate something in the startup of Catalina cannot find
a class or a file that is apparently critical to a smooth launch.

Are there additional files to modify besides:
/etc/java.conf
/var/tomcat4/conf/tomcat4.conf
?

running nmap -p 8000-9000 localhost produces no open ports at various
points during the pause (about 5 seconds) before the errors are
generated.

I know next to nothing about java although in the last few days I've
read through the user archives and have found messages that point to
similar problems on a win32 platform. The results of those posting are
unsolved. I'm hoping this is a configuration issue that I'm just not
getting straight. Any help is appreciated.

Thanks in advance,
BenH
_

LINUX Version = RedHat 7.2 (SMP)

java version 1.4.0_01
Location of java = /usr/java/bin/java
Location of javac = /usr/java/bin/javac

Tomcat4 version = 4.1.10
JAVA_HOME = /usr/java
CATALINA_HOME = /var/tomcat4
CLASSPATH = /usr/java/bin:/usr/java/lib/ext:/var/tomcat4/common/lib


\[system]# tomcat4 run
\
\Using CATALINA_BASE:   /var/tomcat4
\Using CATALINA_HOME:   /var/tomcat4
\Using CATALINA_TMPDIR: /var/tomcat4/temp
\Using JAVA_HOME:   /usr/java
\ERROR reading /var/tomcat4/conf/server.xml
\At Line 18 /Server/Listener/
\className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0
\
\Catalina.start: java.lang.ClassNotFoundException:
\org.apache.catalina.mbeans.ServerLifecycleListener
\java.lang.ClassNotFoundException:
\org.apache.catalina.mbeans.ServerLifecycleListener
\at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
\at java.security.AccessController.doPrivileged(Native Method)
\at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
\at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
\at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
\at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
\at java.lang.Class.forName0(Native Method)
\   at java.lang.Class.forName(Class.java:130)
\   at
\org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
\   at
\org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
\at
\org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
\at
\org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPar
ser.java)
\at
\org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abstra
ctXMLDocumentParser.java)
\at
\org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBind
er.java)
\at
\org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator
.java)
\at
\org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
XMLDocumentFragmentScannerImpl.java)
\at
\org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spatcher.dispatch(XMLDocumentFragmentScannerImpl.java)
\at
\org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
ocumentFragmentScannerImpl.java)
\at
\org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java)
\at
\org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java)
\at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java)
\at
\org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
a)
\at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
\at javax.xml.parsers.SAXParser.parse(SAXParser.java:253)
\at
\org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
\at
org.apache.catalina.startup.Catalina.start(Catalina.java:725)
\at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
\at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
\at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\at

need help with IOException: Cannot recover key

2002-09-13 Thread Nikolay Kabadzhov

Can enybody help, please?
i am trying to setup SSL for tomcat following up the SSL Configuration HOW-TO
everything seems to be ok but when i start it there is an error log:

Catalina.start: LifecycleException:  Protocol handler start failed: 
java.io.IOException: Cannot recover key
LifecycleException:  Protocol handler start failed: java.io.IOException: Cannot 
recover key
at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1028)
at org.apache.catalina.core.StandardService.start(StandardService.java:506)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2191)
at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:242)
at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:302)

It happens regardless of starting tomcat as NT service ot from command line.


Platform - Win2K Pro
Tomcat 4.1.10
jdk 1.4.0


thanks a lot

niki

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




another sql error

2002-09-13 Thread Halil AKINCI

Hi all ,

When I want to run following sql statement  in a servlet, I receive following error 
message  in tomcat's DOS console

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

In this sql statement, the vno variable is read from a HTML form by using following 
statement

String vno = request.getParameter(vergino);   

Other informations are gotten from MS Access tables (Malik, ParselMalik, KatMalik 
tablolarndan). This sql statement is running correct within the access. I wonder how 
can I organize this sql? Can anyone help?

(SELECT Malik.VergiNo,Malik.Ad,Malik.Soyad,ParselMalik.TasnmazID,ParselMalik.Hisse 
 +
FROM ParselMalik,Malik WHERE Malik.VergiNo=+vno+ AND 
Malik.VergiNo=ParselMalik.VergiNo  +
 UNION SELECT 
Malik.VergiNo,Malik.Ad,Malik.Soyad,KatMalik.TasnmazID,KatMalik.PayMiktar  +
 FROM KatMalik,Malik WHERE Malik.VergiNo=+vno+ AND 
Malik.VergiNo=KatMalik.VergiNo);



Ref Http Session

2002-09-13 Thread Stephane . RAULT


OK, thanks for your response.

My main problem is now solved. I want just two little add-on :

- Is it possible to force Tomcat to delete de SESSION.ser (or all the work
dir) on shutdown ?
- I f I understand the session, Tomcat try firts to work with Cookie and
then if, cookie are deactivated, Tomcat use url rewriting. I tried to see
the Cookie générated by tomcat on my brower (IE5.5) but i can't. Is it a
memory cookie or is it in the file system (on win2k, c:/documents and
settings/$user$/Cookie ??)

--
A++

Stéphane


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




Re: Setting thread prority in Tomcat

2002-09-13 Thread Rodrigo Ruiz

See inlines :)

- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 12, 2002 7:15 PM
Subject: Re: Setting thread prority in Tomcat


 Nope. A servlet may run in any thread. The servlet itself may adjust its
 priority (if allowed by the security manager). But you would need to
 remember to also lower it since the next request (to maybe a normal
 servlet) to run in that thread would also run at that priority.


A way to do this could be with a Filter. Just set the priority to the
desired level before service is called, and return it to its original value
after servlet process.

 Personally - unless who are running a high load site and the servlet is
 cpu intensive and long running - I don't think you'll notice a
difference.


I'm not sure, but I suppose a change in servlet thread priorities could have
an important impact on performance. If the thread has higher priority than
the thread receiving requests, a CPU intensive servlet will slow the rest of
the server. Just be careful :-)


 Takumi Fujiwara wrote:
  Hi,
 
  Could someone please tell me if it is possible to
  adjust the priority of servlet serving thread based on
  which servlet it is serving?
 
  For example, I have 2 servlets in my Web Application.
  All threads serving Servlet 1 will have higher prority
  than Servlet 2.
 
  Can I config that in TomCat?
 
  Thanks for any help.
  Sam
 
  __
  Do you Yahoo!?
  Yahoo! News - Today's headlines
  http://news.yahoo.com
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 


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




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 10/09/2002


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




BUG: Try please

2002-09-13 Thread Miguel Angel Mulero Martinez

After try myself a lot of things, and make the question in this group, and
see others with the same problem, I think this is a bug. If someone could
try it and confirms, I will post it to bugzilla:

- Windows 2000, SP3, JDK 1.4.0_01, Tomcat 4.1.10
- Install tomcat 4.1.10 (not LE). Install like a service.
- Verify the environment variable (CATALINA_HOME)
- Execute the service Tomcat, and go to the examples. Execute de date jsp
example. Tomcat fails to compile de JSP.
- Stop the tomcat service. Go to the command line, to CATALINA_HOME and type
catalina start
- Go to the date JSP example. Tomcat works fine.
- Stop tomcat. Start it another time from the service. Go to the date JSP
example. Now works.
- Try others JSP (numguess.jsp). Fail.

This only happens with JSP that use classes from /WEB-INF/classes or
/WEB-INF/lib

Thanks!!


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




Re: Running XML-parsing servlets on Tomcat, using JAXP ?

2002-09-13 Thread Soefara Redzuan

My oh my, Jake, thank you so much for this most incredible
explanation of the Endorsed mechanism, the differences between
the various versions of Tomcat as well as JDK1.3/1.4.

This is such a valuable body of knowledge, and so well explained,
that I hope it will be archived by many for future reference.

Thanks also for confirming that stuff you just put on the
classpath won't affect Tomcat at all since it ignores the
system classpath.

Regards,

Soefara.


From: Jacob Kjome [EMAIL PROTECTED]

common/endorsed only exists in Tomcat-4.1.x, not 4.0.x.  Also, since you 
are using JDK1.3.x, there is no concept of the Endorsed Standards Override 
Mechanism as that was introduced with the release of j2sdk1.4.0.  I imagine 
that the common/endorsed directory doesn't really act any different than 
common/lib when running under JDK1.3.x, but when running with j2sdk1.4.x, 
common/endorsed provides a way to override classes in the JDK itself.  So, 
if the JDK used an older version of Xerces, you could put a newer version 
in common/endorsed and it would be used instead of the one that came with 
the JDK.   That same newer library in common/lib would be ignored as the 
JDK would take precedence in classloading.

Putting your classes in $CATALINA_HOME/lib (same as 
$CATALINA_HOME/shared/lib in Tomcat-4.1.x) or common/lib is the way to go 
in your setup.  With j2sdk1.4.x, you might think about putting them in 
common/endorsed which is where the Xerces libraries are in the full version 
of Tomcat-4.1.x (not the jdk1.4-lite version as it is assumed that the JDK 
provides those libraries).

You can permanently add these to your system under j2sdk1.4.x by putting 
them in $JAVA_HOME/jre/lib/endorsed.  You will have to create the 
endorsed directory if it isn't there already.  This does the same thing 
as common/endorsed in Tomcat, only it affects the entire system.

server/lib is not viable to put your libraries unless they are only for the 
container's use.  Your app cannot see libraries in that folder.

As far as affecting Tomat, endorsed stuff will affect it, but stuff you 
just put on the classpath won't affect Tomcat at all since it ignores the 
system classpath.

Jake


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: Try please

2002-09-13 Thread Nikolay Kabadzhov

it works for me!

the same configuration

-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: 13 September 2002 10:40
To: Lista correo Tomcat
Subject: BUG: Try please


After try myself a lot of things, and make the question in this group, and
see others with the same problem, I think this is a bug. If someone could
try it and confirms, I will post it to bugzilla:

- Windows 2000, SP3, JDK 1.4.0_01, Tomcat 4.1.10
- Install tomcat 4.1.10 (not LE). Install like a service.
- Verify the environment variable (CATALINA_HOME)
- Execute the service Tomcat, and go to the examples. Execute de date jsp
example. Tomcat fails to compile de JSP.
- Stop the tomcat service. Go to the command line, to CATALINA_HOME and type
catalina start
- Go to the date JSP example. Tomcat works fine.
- Stop tomcat. Start it another time from the service. Go to the date JSP
example. Now works.
- Try others JSP (numguess.jsp). Fail.

This only happens with JSP that use classes from /WEB-INF/classes or
/WEB-INF/lib

Thanks!!


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


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




Re: Running XML-parsing servlets on Tomcat, using JAXP ?

2002-09-13 Thread Soefara Redzuan

I'd still like to keep jaxp installed on my machine for other
java applications. This won't affect Tomcat at all, will it ?

NO, It should not, I recommend you do not place the jar file in your 
classpath. We never know...

I tried removing the jars from the classpath but it made no
difference, as we all pretty much expected in any case.

I'm using Tomcat4.0.x and JDK1.3

I found that tomcat_home/common/lib/crimson.jar also included
a org.xml.sax library, so I removed crimson.jar.  Still, the
errors persisted.

Here is what I have on my system,

tomcat_home/common/lib contains
-
activation.jar
dom.jar
jaxp-api.jar
jdbc2_0_stdext.jar
jndi.jar
jta.jar
ldap.jar
mail.jar
mysql.jar
naming-common.jar
naming-resources.jar
sax.jar
servlet.jar
tools.jar
tyrex-0.9.7.0.jar
xalan.jar
xercesImpl.jar
xsltc.jar

(none of those seem to have any clashing xml libraries)

tomcat_home/lib contains
--
jasper-runtime.jar
naming-factory.jar

But now I think I've found the culprit - Jasper !


tomcat_home/jasper contains
-
crimson.jar
jasper-compiler.jar
jaxp.jar

who or what is Jasper ? I don't wish to remove something that is
core to Tomcat functionality, but I think that crimson.jar and
jaxp.jar may be clashing with xercesImpl.jar and jaxp-api.jar
in tomcat_home/common/lib.

Does anybody know how I should handle this ?

I really would just upgrade to the latest version of
Tomcat and JDK1.4 but my production servers are running
JDK1.3 and Tomcat 4.0 so I can't take that risk at the moment.
So many changes, so little time.

Thank you in advance,

Soefara.

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: another sql error

2002-09-13 Thread Galbayar

try use Statement

String vno = request.getParameter(vergino);
String Query=Select malik.VerginNo From ParselMalik Where Malik.VergiNo=?;
PreparedStatement st=mysql.prepareStatement(Query);
st.setString(1,vno);


-Original Message-
From: Halil AKINCI [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 13, 2002 4:14 PM
To: Tomcat Users List; servlet-interest group; jakarta-tomcat yahoo
groups
Subject: another sql error


Hi all ,

When I want to run following sql statement  in a servlet, I receive
following error message  in tomcat's DOS console

[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

In this sql statement, the vno variable is read from a HTML form by using
following statement

String vno = request.getParameter(vergino);

Other informations are gotten from MS Access tables (Malik, ParselMalik,
KatMalik tablolarýndan). This sql statement is running correct within the
access. I wonder how can I organize this sql? Can anyone help?

(SELECT
Malik.VergiNo,Malik.Adý,Malik.Soyadý,ParselMalik.TasýnmazID,ParselMalik.Hiss
e  +
FROM ParselMalik,Malik WHERE Malik.VergiNo=+vno+ AND
Malik.VergiNo=ParselMalik.VergiNo  +
 UNION SELECT
Malik.VergiNo,Malik.Adý,Malik.Soyadý,KatMalik.TasýnmazID,KatMalik.PayMiktarý
 +
 FROM KatMalik,Malik WHERE Malik.VergiNo=+vno+ AND
Malik.VergiNo=KatMalik.VergiNo);


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




AW: Running XML-parsing servlets on Tomcat, using JAXP ?

2002-09-13 Thread Ralph Einfeldt


Jasper is the code generator for the jsp's. 
It parses the jsp's and generates the java
code for the servlet.

So as long as you don't wont to run tomcat 
without jsp's or just with precompiled jsp's
it's not an option to remove jasper.

 -Ursprüngliche Nachricht-
 Von: Soefara Redzuan [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 13. September 2002 10:20
 An: [EMAIL PROTECTED]
 Betreff: Re: Running XML-parsing servlets on Tomcat, using JAXP ?
 
 who or what is Jasper ? 

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




Antw: BUG: Try please

2002-09-13 Thread Andre Schild

Open regedit and look at
HKEY_LOCAL_MASCHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters

In the key JVM Library there should be the path to the J2SDK jvm.dll,
like:

C:\j2sdk1.4.0\jre\bin\server\jvm.dll

André

 [EMAIL PROTECTED] 13.09.2002 09:40:12 
After try myself a lot of things, and make the question in this group,
and
see others with the same problem, I think this is a bug. If someone
could
try it and confirms, I will post it to bugzilla:

- Windows 2000, SP3, JDK 1.4.0_01, Tomcat 4.1.10
- Install tomcat 4.1.10 (not LE). Install like a service.
- Verify the environment variable (CATALINA_HOME)
- Execute the service Tomcat, and go to the examples. Execute de date
jsp
example. Tomcat fails to compile de JSP.
- Stop the tomcat service. Go to the command line, to CATALINA_HOME and
type
catalina start
- Go to the date JSP example. Tomcat works fine.
- Stop tomcat. Start it another time from the service. Go to the date
JSP
example. Now works.
- Try others JSP (numguess.jsp). Fail.

This only happens with JSP that use classes from /WEB-INF/classes or
/WEB-INF/lib

Thanks!!


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


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




ServletContext object

2002-09-13 Thread Santosh Kulkarni

Are the objects put in ServletConext synchronized? Say
I have a ServletContext ctx. If I do,
ctx.setAttribute(MYOBJECT, hashTableObject);
where hashTableObject is a Hashtable (or any other
instantiated object) then is the object
hashTableObject synchronized both for reads and
writes?
TIA
Santosh

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

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




RE: Ref Http Session

2002-09-13 Thread Vikramjit Singh

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 13, 2002 12:27 AM
 To: Tomcat Users List
 Subject: Ref Http Session
 
 
 
 OK, thanks for your response.
 
 My main problem is now solved. I want just two little add-on :
 
 - Is it possible to force Tomcat to delete de SESSION.ser (or 
 all the work
 dir) on shutdown ?

You can write a servlet, and in the destroy method of the servlet call the
commands for removing the SESSION.ser.
Or through java.io.File class delete the work dir. Have not tried it, you
could give it a try.

 - I f I understand the session, Tomcat try firts to work with 
 Cookie and
 then if, cookie are deactivated, Tomcat use url rewriting. 

Yeah thats right. 
By default, session tracking uses cookies to associate a session identifier
with a user. To also support users that access a servlet with a browser that
does not support cookies, or that is set up to reject cookies, URL rewriting
is used. 

I 
 tried to see
 the Cookie générated by tomcat on my brower (IE5.5) but i 
 can't. Is it a
 memory cookie or is it in the file system (on win2k, c:/documents and
 settings/$user$/Cookie ??)
 
 --
 A++
 
 Stéphane
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Running XML-parsing servlets on Tomcat, using JAXP ?

2002-09-13 Thread Kwok Peng Tuck

Hmm, how did you get a jasper directory under the tomcat root ?
I checked my tomcat installation in Win2K  I didn't see anything like 
this.
Your /common/lib seems to have a lot more than the standard libraries that
shipped with it, I 've got :
a) activation.jar
b) jdbc2_0-stdex.jar
c) jndi.jar
d) jta-spec1_0_1.jar
e) mail.jar
f) naming-common.jar
g) naming-resource.jar
h) servlet.jar
i) tools.jar
j) tyrex.license
k) tyrex-0.9.7.0.jar
l) xerces.jar

How did dom.jar , xalan.jar, mysql.jar end up there ?
Generally if you wish to use any other jar(s) you put them in {webapps 
root} /WEB-INF/lib .



Soefara Redzuan wrote:

 I'd still like to keep jaxp installed on my machine for other
 java applications. This won't affect Tomcat at all, will it ?


 NO, It should not, I recommend you do not place the jar file in your 
 classpath. We never know...


 I tried removing the jars from the classpath but it made no
 difference, as we all pretty much expected in any case.

 I'm using Tomcat4.0.x and JDK1.3

 I found that tomcat_home/common/lib/crimson.jar also included
 a org.xml.sax library, so I removed crimson.jar.  Still, the
 errors persisted.

 Here is what I have on my system,

 tomcat_home/common/lib contains
 -
 activation.jar
 dom.jar
 jaxp-api.jar
 jdbc2_0_stdext.jar
 jndi.jar
 jta.jar
 ldap.jar
 mail.jar
 mysql.jar
 naming-common.jar
 naming-resources.jar
 sax.jar
 servlet.jar
 tools.jar
 tyrex-0.9.7.0.jar
 xalan.jar
 xercesImpl.jar
 xsltc.jar

 (none of those seem to have any clashing xml libraries)

 tomcat_home/lib contains
 --
 jasper-runtime.jar
 naming-factory.jar

 But now I think I've found the culprit - Jasper !


 tomcat_home/jasper contains
 -
 crimson.jar
 jasper-compiler.jar
 jaxp.jar

 who or what is Jasper ? I don't wish to remove something that is
 core to Tomcat functionality, but I think that crimson.jar and
 jaxp.jar may be clashing with xercesImpl.jar and jaxp-api.jar
 in tomcat_home/common/lib.

 Does anybody know how I should handle this ?

 I really would just upgrade to the latest version of
 Tomcat and JDK1.4 but my production servers are running
 JDK1.3 and Tomcat 4.0 so I can't take that risk at the moment.
 So many changes, so little time.

 Thank you in advance,

 Soefara.

 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx


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





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




RE: Ref Http Session

2002-09-13 Thread Drinkwater, GJ (Glen)

in the server.xml file. add this tag inside you context path

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store className=org.apache.catalina.session.FileStore/
  /Manager

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




Réf. : RE: Ref Http Session

2002-09-13 Thread Stephane . RAULT


Thanks a lot ! I will try that now.

And for my cookie ? Does anyone know where I can see them ?

--
A++

Stéphane


   
 
Drinkwater, GJ
 
(Glen)Pour :  'Tomcat Users List'   
 
G.J.Drinkwater[EMAIL PROTECTED]
 
@dl.ac.uk cc :
 
   Objet :  RE: Ref Http Session   
 
13/09/2002 
 
11:46  
 
Veuillez   
 
répondre à 
 
Tomcat Users  
 
List  
 
   
 
   
 




in the server.xml file. add this tag inside you context path

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store className=org.apache.catalina.session.FileStore/
  /Manager

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





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




Servlet doesn't executes with load-on-startup option on JDK 1.4.01

2002-09-13 Thread Dev Zero G Ltd team


 Everything was OK on FreeBSD 4.6.2 with linux-sun-jdk1.4 and Tomcat 4.1.9
 
 But after installing linux-sun-jdk1.4.01 servlet doesn't starts 
 
 --
 Best regards,
 Dev Zero G Ltd team http://devzerog.com
 mailto:[EMAIL PROTECTED]
 


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




Hi all.

2002-09-13 Thread sumeet . s


Hello, 
I am using Apache Tomcat 4.1.10(full version) server on windows2000.  It is
a strange error that I have encountered. When I edit the catalina.bat or the
setClasspath.bat for adding another directory to the classpath, I get an
error on the jsp Page which cannot find the ServletContext in the classpath.
I remove the directory from the Batch File. it works fine. 

Can anyone please help me out at this problem.
The exception is appended to the mail. 
Thanks in adv.

--
Sumeet Sukhija 
Email : [EMAIL PROTECTED] 
Phone : +91 80 55356228
--


org.apache.jasper.JasperException: javax/servlet/ServletRequest
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
46)
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.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:260)
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:2397)
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:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
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:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: javax/servlet/ServletRequest
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.facade_jsp._jspService(facade_jsp.java:138)
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(JspServletWrapper.java:2
02)
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.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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at

RE: Tomcat4-4.1.10 Startup Issue (LINUX)Tomcat4-4.1.10 Startup Issue(LINUX)

2002-09-13 Thread Henri Gomez

The RPM release 3 is just out and should take a look at it
it should fix your permission problems.

My advice uninstall tomcat4, then clean up /var/tomcat4 (rm -rf 
/var/tomcat4) before installing rpm rel 3.

NB: scripts will need /etc/java/java.conf instead of /etc/java.conf.

BTW, you should also take a look at jPackage (www.jpackage.org)
project where all the 'Java Linux Frameworks' is present.


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




RE: Antw: BUG: Try please

2002-09-13 Thread Miguel Angel Mulero Martinez

Thanks for your help, but I've got this registry key ok and the problem
remains. There are more people with this problem, but it seems there are
other without. I've tried tomcat 3.2, 3.3, 4.0.3, 4.0.4 and all worked
perfectly. I don't know why this problem, but I think I know something about
tomcat configuration.

Anybody has another idea?

Thanks!

-Mensaje original-
De: Andre Schild [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de septiembre de 2002 10:53
Para: [EMAIL PROTECTED]
Asunto: Antw: BUG: Try please

Open regedit and look at
HKEY_LOCAL_MASCHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters

In the key JVM Library there should be the path to the J2SDK jvm.dll,
like:

C:\j2sdk1.4.0\jre\bin\server\jvm.dll

André

 [EMAIL PROTECTED] 13.09.2002 09:40:12 
After try myself a lot of things, and make the question in this group,
and
see others with the same problem, I think this is a bug. If someone
could
try it and confirms, I will post it to bugzilla:

- Windows 2000, SP3, JDK 1.4.0_01, Tomcat 4.1.10
- Install tomcat 4.1.10 (not LE). Install like a service.
- Verify the environment variable (CATALINA_HOME)
- Execute the service Tomcat, and go to the examples. Execute de date
jsp
example. Tomcat fails to compile de JSP.
- Stop the tomcat service. Go to the command line, to CATALINA_HOME and
type
catalina start
- Go to the date JSP example. Tomcat works fine.
- Stop tomcat. Start it another time from the service. Go to the date
JSP
example. Now works.
- Try others JSP (numguess.jsp). Fail.

This only happens with JSP that use classes from /WEB-INF/classes or
/WEB-INF/lib

Thanks!!


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


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


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




tomcat 4.1.10 rpm available

2002-09-13 Thread Henri Gomez

At the usual location :

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/rpms/

---

Tomcat 4 RPM info

the RPM will be named tomcat4 to allow coexistence
with the actual tomcat 3.x RPM (3.2.x and 3.3)

Here is the release notes for the tomcat4.0.x RPM builds.

o Starting with Tomcat 4.1.9, there is 3 differents kind
   of rpm for tomcat4, following the 2 Tomcat 4 packages
   available at jakarta.apache.org and one in respect of
   rpm policies, ie requiring external package to be installed.

  - TOMCAT 4 LIGHT EDITION FOR JDK 1.4

This version is a minimal Tomcat 4.0 release with
no support for javamail, tyrex extensions.

So it didn't include activation, javamail, jdbc2ext,
or tyrex.

To meet RPM packaging policies, some required packages
like jakarta-regexp 1.2, servlet API 2.3 and an XML parser
(ie xerces 1.44), will be linked in tomcat4 directories at
install time and as such, should be present in system before
tomcat4.


  - TOMCAT 4 FULL EDITION

This version include full support for javamail, jndi and
tyrex datasources.

The rpm include activation.jar, javamail.jar, jdbc2ext and
tyrex 1.0
The rpm also include jndi.jar for JDK 1.2.

It also include jakarta-regexp 1.2 and servlet 2.3 APIs,
and xerces 2.1.0


   - TOMCAT 4 STRICT EDITION

 This version include only tomcat stuff, and require many
 external rpm packages, could you find at JPackage site,
 http://www.jpackage.org :

ant = 1.5
jakarta-commons-beanutils = 1.4.1
jakarta-commons-collections = 2.0
jakarta-commons-daemon
jakarta-commons-dbcp
jakarta-commons-digester = 1.3
jakarta-commons-lang
jakarta-commons-logging = 1.0.1
jakarta-commons-modeler
jakarta-commons-pool = 1.0.1
jaas
jaf = 1.0.1 (activation)
javamail-monolithic = 1.3
jaxp_parser_impl (ie xerces-j2 2.0.2)
jdbc-stdext = 2.0
jndi = 1.2.1
jta = 1.0.1
mx4j = 1.1
regexp = 1.2
servletapi4 = 4.0.4
tyrex = 1.0
xml-commons-apis

o SSL support

SSL support is compiled in, but due to crypto regulation, JSSE
jars are not distributed with either version of Tomcat 4 rpm.
To make use of SSL, you should have JDK 1.4 or JSSE 1.0.3
jars in CLASSPATH, or in server/lib.

   If you have JSSE jars on your system, jcert.jar, jsse.jar,
   jnet.jar, just define JSSE_HOME in /etc/tomcat4/conf/tomcat4.conf
   those JAR files will be added to thei system class path.


o FHS layout

   Starting with Tomcat 4.O.4, rpm is more FHS compliant,
   configuration is on /etc/tomcat4/conf, log goes in
   /var/log/tomcat4, run files in /var/cache/tomcat4/work and
   temp files in /var/cache/tomcat4/temp.
   To make Tomcat 4 works, symlinks are made between real
   FHS location and basedir, /var/tomcat4, location


o Java SDK used

   Starting with Tomcat 4.O.4 rpm release 2, SDK used is
   no more set by default to the IBM SDK 1.3.1 rpm location.
   You'll have to create a /etc/java/java.conf and set at least
   JAVA_HOME is it, ie :

- /etc/java/java.conf -
# Where your java installation lives
# examples
# Sun SDK 1.4.0_01 rpm
# JAVA_HOME=/usr/java/j2sdk1.4.0_01
# Sun SDK 1.3.1_03 rpm
# JAVA_HOME=/usr/java/jdk1.3.1_03
# IBM SDK 1.3.1 rpm
JAVA_HOME=/opt/IBMJava2-131


o Tomcat 4 configuration

   A configuration file /etc/tomcat4/tomcat4.conf is loaded
   before Tomcat or Jasper start and could be used to tuned JVM
   params


o Tomcat 4 / Jasper 4 invocation

   Tomcat 4.0 invoker script is tomcat4, Jasper 4.0 is jasper4
   Take a look at /etc/tomcat4/tomcat4.conf for tuning


o Running mode

   For security purposes tomcat4 will run as user tomcat4, which
   will be created by rpm at install time. Warning this user
   should have a login shell to be able to use the su exec command
   logs, work, temp and webapps are now owned by tomcat4:tomcat4
   user at rpm install time


o Listen ports

   Starting with Tomcat 4.0.4, Tomcat 4.0 will listen on standard ports,
   ie port 8080 (HTTP 1.1), 8081 (HTTP 1.0), 8443 (HTTP SSL), 8009 (AJP13),
   8008 (WARP).

   To avoid collision with running TC 3.x, you could use the 
/usr/bin/reloctomcat4
   command which will change these ports to 8180, 8181, 8453 and 8109.


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




Re: another sql error

2002-09-13 Thread Halil AKINCI

I correct sql statement. My servlet  is running now. thanks...
  - Original Message - 
  From: Halil AKINCI 
  To: Tomcat Users List ; servlet-interest group ; jakarta-tomcat yahoo groups 
  Sent: Friday, September 13, 2002 10:14 AM
  Subject: another sql error


  Hi all ,

  When I want to run following sql statement  in a servlet, I receive following error 
message  in tomcat's DOS console

  [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.

  In this sql statement, the vno variable is read from a HTML form by using 
following statement

  String vno = request.getParameter(vergino);   

  Other informations are gotten from MS Access tables (Malik, ParselMalik, KatMalik 
tablolarndan). This sql statement is running correct within the access. I wonder how 
can I organize this sql? Can anyone help?

  (SELECT 
Malik.VergiNo,Malik.Ad,Malik.Soyad,ParselMalik.TasnmazID,ParselMalik.Hisse  +
  FROM ParselMalik,Malik WHERE Malik.VergiNo=+vno+ AND 
Malik.VergiNo=ParselMalik.VergiNo  +
   UNION SELECT 
Malik.VergiNo,Malik.Ad,Malik.Soyad,KatMalik.TasnmazID,KatMalik.PayMiktar  +
   FROM KatMalik,Malik WHERE Malik.VergiNo=+vno+ AND 
Malik.VergiNo=KatMalik.VergiNo);



RE: Réf. : RE: Ref Http Session

2002-09-13 Thread Drinkwater, GJ (Glen)

session cookies id's are not saved to you hard drive. they are stored in you
memory until the  browser is closed.

session attributes are stored on the server and have not contact with he
browser.  The session id sent from your browser is used by the server to id
you session object on the server, then it can access your stored attributes.

if you want to see your session id and associating attributes you will have
to write  jsp page to print out your attributes

something like this

Enumeration en = session.getAttributeNames();
while(en.hasMoreElements){
String name = en.nextElement();
System.out.println(name + has value + session.getAttribute(name));
}




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




Problem Loading Servlet on Server startup

2002-09-13 Thread info

Hi,

below is my current web.xml listed.
As the first Servlet I am loading the InitAppServlet. The init(cfg ServletConfig) 
Methode lookes like:

   public void init(ServletConfig cfg) throws ServletException 
 {
  this.cfg = cfg;
  this.ctx = cfg.getServletContext();
  //initApp();
  
 }//init()

When I startup the application I get an Exception form the destroy() methode of the 
InitAppServlet is thrown.
You can see below the thrown Execption
As a strange thing: it already used to work!

Does anyone have an idea?

I am using Tomcat 4.0.1 on a Linux SuSE 7.3 Box, JDK 1.3.1

thanks, rainer

#
Exception:

Servlet InitAppServlet threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet InitAppServlet threw 
exception
 at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1020)
 at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1193)
 at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2381)
 at org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:448)
 at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:281)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:518)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.NullPointerException
 at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
 at javax.servlet.GenericServlet.log(GenericServlet.java:300)
 at javax.servlet.GenericServlet.destroy(GenericServlet.java:122)
 at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1011)
 at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1193)
 at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2381)
 at org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:448)
 at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:281)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 

TOMCAT 4.1.0 and JIKES

2002-09-13 Thread christophe . baroin

Hello, 

I would like to use Jikes with Tomcat. 
There is in the documentation of Tomcat: 

If you wish to use Jikes to compile JSP pages: 
Download and install jikes. 
Set the init parameter compiler to jikes. 
Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 
If you get an error reporting that jikes can't use UTF8 encoding, try 
setting the init parameter javaEncoding to ISO-8859-1. 

I thus downloaded Jikes 1.16 at IBM 
I added it to the CLASSPATH 

Then, in $CATALINA_HOME/conf/web.xml  I added these lines: 
servlet
servlet-namejsp/servlet-name
 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namejspCompilerPlugin/param-name
 param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

After I do not understand documentation: 
Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 
If you get an error reporting that jikes can't use UTF8 encoding, try 
setting the init parameter javaEncoding to ISO-8859-1. 

Can somebody help me? 

(If you are French, answer me of French) 
(Si vous êtes français, répondez moi en français)

Thank you in advance. 

Greetings. 

Ch.BAROIN


RE: Ref Http Session

2002-09-13 Thread Drinkwater, GJ (Glen)



session cookies id's are not saved to you hard drive. they are stored in you
memory until the  browser is closed.

session attributes are stored on the server and have not contact with he
browser.  The session id sent from your browser is used by the server to id
you session object on the server, then it can access your stored attributes.

if you want to see your session id and associating attributes you will have
to write  jsp page to print out your attributes

something like this

Enumeration en = session.getAttributeNames();
while(en.hasMoreElements){
String name = en.nextElement();
System.out.println(name + has value + session.getAttribute(name));
}




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




RE: ServletContext object

2002-09-13 Thread Vikramjit Singh

 -Original Message-
 From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 13, 2002 2:13 AM
 To: [EMAIL PROTECTED]
 Subject: ServletContext object
 
 
 Are the objects put in ServletConext synchronized? 

No they are not synchronized. Many users can concurrently access
ServletContext instance.
You could implement the SingleThreadModel in a servlet for gaining the
purpose of synchronization.

 Say I have a ServletContext ctx. If I do,
 ctx.setAttribute(MYOBJECT, hashTableObject);
 where hashTableObject is a Hashtable (or any other
 instantiated object) then is the object
 hashTableObject synchronized both for reads and
 writes?

Hashtable is synchronized unlike the Collections implementation.
I hope i get you correctly.

 TIA
 Santosh

Vikram.
 
 __
 Do you Yahoo!?
 Yahoo! News - Today's headlines
 http://news.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




URL Filtering

2002-09-13 Thread apache-tomcat-user-subscriber

Does Tomcat provide a mechanism similar to URL rewriting or ISAPI
filtering?

Thanks,
Alex

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




TOMCAT 4.10 with JIKES ??

2002-09-13 Thread christophe . baroin

Hello, 

I would like to use Jikes with Tomcat. 
There is in the documentation of Tomcat: 

If you wish to use Jikes to compile JSP pages: 
Download and install jikes. 
Set the init parameter compiler to jikes. 
Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 
If you get an error reporting that jikes can't use UTF8 encoding, try 
setting the init parameter javaEncoding to ISO-8859-1. 

I thus downloaded Jikes 1.16 at IBM 
I added it to the CLASSPATH 

Then, in $CATALINA_HOME/conf/web.xml  I added these lines: 
servlet
servlet-namejsp/servlet-name
 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namejspCompilerPlugin/param-name
 param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param
init-param
param-namelogVerbosityLevel/param-name
param-valueWARNING/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

After I do not understand documentation: 
Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 
If you get an error reporting that jikes can't use UTF8 encoding, try 
setting the init parameter javaEncoding to ISO-8859-1. 

Can somebody help me? 

(If you are French, answer me of French) 
(Si vous êtes français, répondez moi en français)

Thank you in advance. 

Greetings. 

Ch.BAROIN


Re: TOMCAT 4.1.0 and JIKES

2002-09-13 Thread Glenn Nielsen

[EMAIL PROTECTED] wrote:
 Hello, 
 
 I would like to use Jikes with Tomcat. 
 There is in the documentation of Tomcat: 
 
 If you wish to use Jikes to compile JSP pages: 
 Download and install jikes. 
 Set the init parameter compiler to jikes. 
 Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 
 If you get an error reporting that jikes can't use UTF8 encoding, try 
 setting the init parameter javaEncoding to ISO-8859-1. 
 
 I thus downloaded Jikes 1.16 at IBM 
 I added it to the CLASSPATH 
 
 Then, in $CATALINA_HOME/conf/web.xml  I added these lines: 
 servlet
 servlet-namejsp/servlet-name
  servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
 init-param
 param-namejspCompilerPlugin/param-name
  param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
 /init-param
 init-param
 param-namelogVerbosityLevel/param-name
 param-valueWARNING/param-value
 /init-param
 load-on-startup3/load-on-startup
 /servlet
 

The documentation in the Tomcat 4.1.10 CATALINA_HOME/conf/web.xml is wrong.
Jasper 2 in Tomcat 4 no longer uses the jspCompilerPlugin init parameter.
You must use the compiler init parameter and set it to jikes.

 After I do not understand documentation: 
 Define the property -Dbuild.compiler.emacs=true when starting Tomcat. 

Add -Dbuild.compiler.emacs=true to your CATALINA_OPTS env variable.
This changes how jikes outputs error message so that Jasper can tell you
what line number in your JSP the error occurred in.

 If you get an error reporting that jikes can't use UTF8 encoding, try 
 setting the init parameter javaEncoding to ISO-8859-1. 

The new documentation on the jakarta site for Jasper is written based on
the current source in CVS.  There was a bug in the Tomcat 4.1.10 release
and Jasper 2 which caused it to not use the javaEncoding you set in the
init paramter. If you are having problems with jikes and encoding you
will either have to use the nightly Tomcat 4.1.x build or wait for the
next Tomcat 4.1.11 release.

 
 Can somebody help me? 
 
 (If you are French, answer me of French) 
 (Si vous êtes français, répondez moi en français)
 
 Thank you in advance. 
 
 Greetings. 
 
 Ch.BAROIN




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




Réf. : RE: Ref Http Session

2002-09-13 Thread Stephane . RAULT


Thanks a lot for all your responses...

--
A++

Stéphane



   
 
Drinkwater, GJ
 
(Glen)Pour :  Tomcat Users List   
 
G.J.Drinkwater[EMAIL PROTECTED]
 
@dl.ac.uk cc :
 
   Objet :  RE: Ref Http Session   
 
13/09/2002 
 
13:13  
 
Veuillez   
 
répondre à 
 
Tomcat Users  
 
List  
 
   
 
   
 






session cookies id's are not saved to you hard drive. they are stored in
you
memory until the  browser is closed.

session attributes are stored on the server and have not contact with he
browser.  The session id sent from your browser is used by the server to id
you session object on the server, then it can access your stored
attributes.

if you want to see your session id and associating attributes you will have
to write  jsp page to print out your attributes

something like this

Enumeration en = session.getAttributeNames();
while(en.hasMoreElements){
 String name = en.nextElement();
System.out.println(name + has value +
session.getAttribute(name));
}




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





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




RE: Antw: BUG: Try please

2002-09-13 Thread Wycliffe Slingsby

It's the same for me. Same set-up except for NT4 SP4. Tomcat works fine when
run from the startup.bat file but fails to compile previously uncompiled
files when run as a service. My registry key is also fine.

Still looking

Regards
Wyc

-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: 13 September 2002 11:29
To: Tomcat Users List
Subject: RE: Antw: BUG: Try please


Thanks for your help, but I've got this registry key ok and the problem
remains. There are more people with this problem, but it seems there are
other without. I've tried tomcat 3.2, 3.3, 4.0.3, 4.0.4 and all worked
perfectly. I don't know why this problem, but I think I know something about
tomcat configuration.

Anybody has another idea?

Thanks!

-Mensaje original-
De: Andre Schild [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de septiembre de 2002 10:53
Para: [EMAIL PROTECTED]
Asunto: Antw: BUG: Try please

Open regedit and look at
HKEY_LOCAL_MASCHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters

In the key JVM Library there should be the path to the J2SDK jvm.dll,
like:

C:\j2sdk1.4.0\jre\bin\server\jvm.dll

André

 [EMAIL PROTECTED] 13.09.2002 09:40:12 
After try myself a lot of things, and make the question in this group,
and
see others with the same problem, I think this is a bug. If someone
could
try it and confirms, I will post it to bugzilla:

- Windows 2000, SP3, JDK 1.4.0_01, Tomcat 4.1.10
- Install tomcat 4.1.10 (not LE). Install like a service.
- Verify the environment variable (CATALINA_HOME)
- Execute the service Tomcat, and go to the examples. Execute de date
jsp
example. Tomcat fails to compile de JSP.
- Stop the tomcat service. Go to the command line, to CATALINA_HOME and
type
catalina start
- Go to the date JSP example. Tomcat works fine.
- Stop tomcat. Start it another time from the service. Go to the date
JSP
example. Now works.
- Try others JSP (numguess.jsp). Fail.

This only happens with JSP that use classes from /WEB-INF/classes or
/WEB-INF/lib

Thanks!!


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


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


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


_
This e-mail has been scanned for viruses by the WorldCom Internet Managed
Scanning Service - powered by MessageLabs. For further information visit
http://www.worldcom.com

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




RE: Antw: BUG: Try please

2002-09-13 Thread Miguel Angel Mulero Martinez

Ok! So I'm not the only one. If you have some idea of what installed
component outside tomcat may cause this, tell it to me to compare with my
system.

Anyone more?

-Mensaje original-
De: Wycliffe Slingsby [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de septiembre de 2002 13:56
Para: 'Tomcat Users List'
Asunto: RE: Antw: BUG: Try please

It's the same for me. Same set-up except for NT4 SP4. Tomcat works fine when
run from the startup.bat file but fails to compile previously uncompiled
files when run as a service. My registry key is also fine.

Still looking

Regards
Wyc

-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]]
Sent: 13 September 2002 11:29
To: Tomcat Users List
Subject: RE: Antw: BUG: Try please


Thanks for your help, but I've got this registry key ok and the problem
remains. There are more people with this problem, but it seems there are
other without. I've tried tomcat 3.2, 3.3, 4.0.3, 4.0.4 and all worked
perfectly. I don't know why this problem, but I think I know something about
tomcat configuration.

Anybody has another idea?

Thanks!

-Mensaje original-
De: Andre Schild [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de septiembre de 2002 10:53
Para: [EMAIL PROTECTED]
Asunto: Antw: BUG: Try please

Open regedit and look at
HKEY_LOCAL_MASCHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters

In the key JVM Library there should be the path to the J2SDK jvm.dll,
like:

C:\j2sdk1.4.0\jre\bin\server\jvm.dll

André

 [EMAIL PROTECTED] 13.09.2002 09:40:12 
After try myself a lot of things, and make the question in this group,
and
see others with the same problem, I think this is a bug. If someone
could
try it and confirms, I will post it to bugzilla:

- Windows 2000, SP3, JDK 1.4.0_01, Tomcat 4.1.10
- Install tomcat 4.1.10 (not LE). Install like a service.
- Verify the environment variable (CATALINA_HOME)
- Execute the service Tomcat, and go to the examples. Execute de date
jsp
example. Tomcat fails to compile de JSP.
- Stop the tomcat service. Go to the command line, to CATALINA_HOME and
type
catalina start
- Go to the date JSP example. Tomcat works fine.
- Stop tomcat. Start it another time from the service. Go to the date
JSP
example. Now works.
- Try others JSP (numguess.jsp). Fail.

This only happens with JSP that use classes from /WEB-INF/classes or
/WEB-INF/lib

Thanks!!


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


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


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


_
This e-mail has been scanned for viruses by the WorldCom Internet Managed
Scanning Service - powered by MessageLabs. For further information visit
http://www.worldcom.com

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


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




Re: Help Deploying Servlet

2002-09-13 Thread Mauro Daniel Ardolino

It may be your servlet is on a package.

If so, then you have to put your servlet in:
$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/nameOfThePackage/AddNewsItem.class

Then in web.xml:
 web-app
   servlet
 servlet-nameAddNewsItem/servlet-name
 servlet-classnameOfThePackage.AddNewsItem/servlet-class
   /servlet
 /web-app

I do not know if it will work the call you done because I never
tried to do it this way, but you can try this:
a href=servlet/nameOfThePackage/AddNewsItemthe link to the servlet/a

Bye!

Mauro


On Thu, 12 Sep 2002, Chuck Carson wrote:

  
 I have the following servlet:
 $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/AddNewsItem.class
  
 I addded this to  WEB-INF/web.xml
 web-app
   servlet
 servlet-nameAddNewsItem/servlet-name
 servlet-classAddNewsItem/servlet-class
   /servlet
 /web-app
  
 I restarted tomcat but I keep getting 404's when referring to
 AddNewsItem from a jsp page like so:
  
 FORM action=AddNewsItem method=POST
  
 What am I missing?
  
 Thanks,
 Chuck
  
  
  
 Chuck Carson 
 Sr. Systems Administrator
 Syrrx, Inc.
 10410 Science Center Drive
 San Diego, CA 92121
 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 W: 858.731.3540
 M: 858.442.0827
 
 
 --
 This message contains confidential information and is intended only for
 the individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and
 delete this e-mail from your system. E-mail transmission cannot be
 guaranteed to be secure or error-free as information could be
 intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
 contain viruses. The sender therefore does not accept liability for any
 errors or omissions in the contents of this message, which arise as a
 result of e-mail transmission. If verification is required please
 request a hard-copy version. 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




RE: apache error?

2002-09-13 Thread Turner, John


What mod_jk.so are you using?  Where did you get it, how did you get it?
Did you build it from source?  If so, how?

John

 -Original Message-
 From: hari hari [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 12, 2002 8:26 PM
 To: [EMAIL PROTECTED]
 Subject: Re: apache error?
 
 
 my many many thnak you to you friendes,
 
 I sending following files with this email you asked.
 1)httpd.conf (attached)
 2)server.xml (attached with thsi email)
 
 The rest files are inline with this email since they are 
 small and so as 
 follows:
 My workers.properties file containing following lines:
 
 workers.tomcat_home=/jboss/catalina
 workers.java_home=/usr/java130
 ps=/
 worker.list=ajp12, ajp13, ajp14
 worker.ajp13.port=8009
 worker.ajp13.host=100.200.100.200
 worker.ajp13.type=ajp13
 
 My mod_jk.conf file is containing following lines:
 LoadModule jk_module modules/mod_jk.so
 #AddModule mod_jk.c
 IfModule mod_jk.c
 JkWorkersFile /jboss/catalina/conf/jk/workers.properties
 JkLogFile  logs/jk.log
 JkLogLevel warn
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12
 JkMount /examples/* ajp12
 /IfModule
 
 I using Apache 2.0.40, Tomcat 4.0.4 and IBM AIX 5.1 System
 
 Ploice helping me - i trying to hard.
 
 my thank you to all you.
 
 --hari
 
 
 
 
 
 From: Habibak haAlbek [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: apache error?
 Date: Thu, 12 Sep 2002 17:01:29 -0700 (PDT)
 
 
 In your reply, please attach the following files:
 httpd.conf
 workers.properties
 server.xml
 mod_jk.conf (if you have one) and any other files
 What apache version are you using? are you using plain or 
 apache with SSL?
 What tomcat version are you using?
 How did you obtain the mod_jk.so?
 What JDK version are you using?
 operating system? and version?
 
   hari hari wrote:hi
 
 thanks to you foe reply me email.
 
 i try to create libexec directory and putting mod_jk.so in 
 that directory
 but it is show same error. And i changing permission of 
 mod_jk.so to 755 
 but
 still no working.
 
 helping me.
 --
 hari
 
 
  From: [EMAIL PROTECTED]
  To: hari hari
  CC: [EMAIL PROTECTED]
  Subject: Re: apache error?
  Date: Thu, 12 Sep 2002 14:54:17 -0400
  
  
  
  hari,
  
  1. Is there a libexec directory where you can place 
 that I beleive
  modules directory is applicable for windows
  2. Check the permission on the mod_jk.so file, you may need to do 
 something
  like that: chmod 755 mod_jk.so to give it the appropriate 
 permissions.
  
  
  
  
  
  
  hari hari on 09/12/2002 02:27:39 PM
  
  To: [EMAIL PROTECTED]
  cc:
  
  Subject: Re: apache error?
  
  
  Hi my friends,
  
  my many thank you to all of you.
  
  i mentioned in my last mail messg, I using apache 2.0.40 
 and tomcat 4.0.4
  on
  IBM aix 5.1 systems.
  
  I having errers when running my apache as follows. my 
 friend emiled me
  mod_jk.so and telling me to put that mod_jk.so in
  /usr/local/apache2/modules
  directory and I did that and it is giving problems.
  
  #./apachectl start
  Syntax error on line 1 of /jboss/catalina/conf/auto/mod_jk.conf:
  Cannot load /usr/local/apache2/modules/mod_jk.so into server:
  #
  
  I adding following lines at the very end of my httpd.conf file:
  Include /jboss/catalina/conf/auto/mod_jk.conf
  
  My mod_jk.conf file is below:
  LoadModule jk_module modules/mod_jk.so
  
  JkWorkersFile /jboss/catalina/conf/jk/workers.properties
  JkLogFile logs/jk.log
  JkLogLevel warn
  JkMount /*.jsp ajp12
  JkMount /servlet/* ajp12
  JkMount /examples/* ajp12
  
  
  ploice helping me.
  
  --hari
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 

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




Re: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Mauro Daniel Ardolino

I think you have to restart Tomcat for changes like this.
Do someone know another way to do it?

Mauro

On Thu, 12 Sep 2002, Chuck Carson wrote:

  
 I had the following class:
 $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class
  
 If I modify this class (ie recompile) how can I make it active w/o
 restarting tomcat? As it stands now (with my current server config,
 which is pretty much default) I can only get news changes visible after
 a server restart.
  
 Thanks,
 CC
  
 Chuck Carson 
 Sr. Systems Administrator
 Syrrx, Inc.
 10410 Science Center Drive
 San Diego, CA 92121
 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 W: 858.731.3540
 M: 858.442.0827
 
 
 --
 This message contains confidential information and is intended only for
 the individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and
 delete this e-mail from your system. E-mail transmission cannot be
 guaranteed to be secure or error-free as information could be
 intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
 contain viruses. The sender therefore does not accept liability for any
 errors or omissions in the contents of this message, which arise as a
 result of e-mail transmission. If verification is required please
 request a hard-copy version. 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




Re: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Michael Nicholson

I've never used it (I'm lazy and restarting is easy...), but the manager app
can unload apps and then deploy them... that might do it...

- Original Message -
From: Mauro Daniel Ardolino [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 13, 2002 9:31 AM
Subject: Re: Does Tomcat require restart when chaning classes?


 I think you have to restart Tomcat for changes like this.
 Do someone know another way to do it?

 Mauro

 On Thu, 12 Sep 2002, Chuck Carson wrote:

 
  I had the following class:
  $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class
 
  If I modify this class (ie recompile) how can I make it active w/o
  restarting tomcat? As it stands now (with my current server config,
  which is pretty much default) I can only get news changes visible after
  a server restart.
 
  Thanks,
  CC
 
  Chuck Carson
  Sr. Systems Administrator
  Syrrx, Inc.
  10410 Science Center Drive
  San Diego, CA 92121
  E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  W: 858.731.3540
  M: 858.442.0827
 
 
  --
  This message contains confidential information and is intended only for
  the individual named. If you are not the named addressee you should not
  disseminate, distribute or copy this e-mail. Please notify the sender
  immediately by e-mail if you have received this e-mail by mistake and
  delete this e-mail from your system. E-mail transmission cannot be
  guaranteed to be secure or error-free as information could be
  intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
  contain viruses. The sender therefore does not accept liability for any
  errors or omissions in the contents of this message, which arise as a
  result of e-mail transmission. If verification is required please
  request a hard-copy version.
 

 --
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar


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




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




JMX??

2002-09-13 Thread Adam Greene

I saw that Tomcat 4.1.X has JMX in it, is it possible to add our own MBeans
to Tomcat??  I am working on a work flow server and would like to implement
support services as MBeans.

Adam Greene
ROMulin Group Inc

885 Main St, Suite 16
Moncton, NB
E1C 1G5

Ph: (506) 863-1014 x4
Fx: (506) 854-6886

http://www.romulin.com/





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




RE: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Miguel Angel Mulero Martinez

In the context of the application, put the reloadable=true attribute. If
you don't have a context for this application, you can put a:

DefaultContext reloadable=true /

Bye...

-Mensaje original-
De: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de septiembre de 2002 15:31
Para: Tomcat Users List
Asunto: Re: Does Tomcat require restart when chaning classes?

I think you have to restart Tomcat for changes like this.
Do someone know another way to do it?

Mauro

On Thu, 12 Sep 2002, Chuck Carson wrote:


 I had the following class:
 $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class

 If I modify this class (ie recompile) how can I make it active w/o
 restarting tomcat? As it stands now (with my current server config,
 which is pretty much default) I can only get news changes visible after
 a server restart.

 Thanks,
 CC

 Chuck Carson
 Sr. Systems Administrator
 Syrrx, Inc.
 10410 Science Center Drive
 San Diego, CA 92121
 E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 W: 858.731.3540
 M: 858.442.0827


 --
 This message contains confidential information and is intended only for
 the individual named. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and
 delete this e-mail from your system. E-mail transmission cannot be
 guaranteed to be secure or error-free as information could be
 intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
 contain viruses. The sender therefore does not accept liability for any
 errors or omissions in the contents of this message, which arise as a
 result of e-mail transmission. If verification is required please
 request a hard-copy version.


--
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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


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




RE: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Mauro Daniel Ardolino

Sorry for the next question, but...
Do I have to put this line in the web.xml?
How can I declare a context for my app?

Thanks.

Mauro


On Fri, 13 Sep 2002, Miguel Angel Mulero Martinez wrote:

 In the context of the application, put the reloadable=true attribute. If
 you don't have a context for this application, you can put a:
 
   DefaultContext reloadable=true /
 
 Bye...
 
 -Mensaje original-
 De: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes, 13 de septiembre de 2002 15:31
 Para: Tomcat Users List
 Asunto: Re: Does Tomcat require restart when chaning classes?
 
 I think you have to restart Tomcat for changes like this.
 Do someone know another way to do it?
 
 Mauro
 
 On Thu, 12 Sep 2002, Chuck Carson wrote:
 
 
  I had the following class:
  $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class
 
  If I modify this class (ie recompile) how can I make it active w/o
  restarting tomcat? As it stands now (with my current server config,
  which is pretty much default) I can only get news changes visible after
  a server restart.
 
  Thanks,
  CC
 
  Chuck Carson
  Sr. Systems Administrator
  Syrrx, Inc.
  10410 Science Center Drive
  San Diego, CA 92121
  E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  W: 858.731.3540
  M: 858.442.0827
 
 
  --
  This message contains confidential information and is intended only for
  the individual named. If you are not the named addressee you should not
  disseminate, distribute or copy this e-mail. Please notify the sender
  immediately by e-mail if you have received this e-mail by mistake and
  delete this e-mail from your system. E-mail transmission cannot be
  guaranteed to be secure or error-free as information could be
  intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
  contain viruses. The sender therefore does not accept liability for any
  errors or omissions in the contents of this message, which arise as a
  result of e-mail transmission. If verification is required please
  request a hard-copy version.
 
 
 --
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




Did anyone know a good Apache newsgroup?

2002-09-13 Thread Alexander Schmidt

Hi!
Did anyone know a good apache newsgroup?

Thanks
  A. Schmidt



RE: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Miguel Angel Mulero Martinez

Make a backup of tour server.xml file. Open your server.xml file. Inside the
host.../host you will see some context Make another similar.
To create a context for your webapp, put something like this:

Context path=/ceeieuropa docBase=D:/Mulero/Mis
documentos/forte/miproyecto reloadable=true /

Whith this line, you map: http://localhost:8080/ceeiuropa to the directory
specified.

I think you have used the ROOT directory, so search the line:

Context path= docBase=ROOT debug=0 /

and change it for:

Context path= docBase=ROOT debug=0 reloadable=true /

If you don't want to create a context, simply put your application in the
webapps directory and put in the host ... /host

DefaultContext reloadable=true /

With reloadable=true tomcat, every 15 seconds (by default) reloads the
application if some class changed.

Regards


-Mensaje original-
De: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 13 de septiembre de 2002 15:40
Para: Tomcat Users List
Asunto: RE: Does Tomcat require restart when chaning classes?

Sorry for the next question, but...
Do I have to put this line in the web.xml?
How can I declare a context for my app?

Thanks.

Mauro


On Fri, 13 Sep 2002, Miguel Angel Mulero Martinez wrote:

 In the context of the application, put the reloadable=true attribute. If
 you don't have a context for this application, you can put a:

   DefaultContext reloadable=true /

 Bye...

 -Mensaje original-
 De: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes, 13 de septiembre de 2002 15:31
 Para: Tomcat Users List
 Asunto: Re: Does Tomcat require restart when chaning classes?

 I think you have to restart Tomcat for changes like this.
 Do someone know another way to do it?

 Mauro

 On Thu, 12 Sep 2002, Chuck Carson wrote:

 
  I had the following class:
  $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class
 
  If I modify this class (ie recompile) how can I make it active w/o
  restarting tomcat? As it stands now (with my current server config,
  which is pretty much default) I can only get news changes visible after
  a server restart.
 
  Thanks,
  CC
 
  Chuck Carson
  Sr. Systems Administrator
  Syrrx, Inc.
  10410 Science Center Drive
  San Diego, CA 92121
  E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  W: 858.731.3540
  M: 858.442.0827
 
 
  --
  This message contains confidential information and is intended only for
  the individual named. If you are not the named addressee you should not
  disseminate, distribute or copy this e-mail. Please notify the sender
  immediately by e-mail if you have received this e-mail by mistake and
  delete this e-mail from your system. E-mail transmission cannot be
  guaranteed to be secure or error-free as information could be
  intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
  contain viruses. The sender therefore does not accept liability for any
  errors or omissions in the contents of this message, which arise as a
  result of e-mail transmission. If verification is required please
  request a hard-copy version.
 

 --
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar


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


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



--
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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


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




__USING COYOTE JK__

2002-09-13 Thread Datllr

Does anyone know of a good tutorial telling how to link an apache server 
(1.3.26) and tomcat 4.1 on either/both linux/windows using coyote jk?
I've searched the internet and the tomcat documentation, and all I learned is 
that coyote comes by default with tomcat 4.1.

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




RE: Problem Loading Servlet on Server startup

2002-09-13 Thread Shapira, Yoav

HI,
For starters, you should override the init() method with no args, as
that's provided for your convenience.  It gets call from the one with
the ServletConfig arg.

Then, instead of saving a reference to the ServletConfig passed to init,
get a new one in your destroy method: in destroy, just have
ServletContext sc = getServletConfig().getServletContext();

I hope that helps,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 13, 2002 7:12 AM
To: Tomcat Users List
Subject: Problem Loading Servlet on Server startup

Hi,

below is my current web.xml listed.
As the first Servlet I am loading the InitAppServlet. The init(cfg
ServletConfig) Methode lookes like:

   public void init(ServletConfig cfg) throws ServletException
 {
  this.cfg = cfg;
  this.ctx = cfg.getServletContext();
  //initApp();

 }//init()

When I startup the application I get an Exception form the destroy()
methode of the InitAppServlet is thrown.
You can see below the thrown Execption
As a strange thing: it already used to work!

Does anyone have an idea?

I am using Tomcat 4.0.1 on a Linux SuSE 7.3 Box, JDK 1.3.1

thanks, rainer

#
Exception:

Servlet InitAppServlet threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet
InitAppServlet threw exception
 at
org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:10
20)
 at
org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1193
)
 at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:23
81)
 at
org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:
448)
 at
org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:2
81)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
rBas
e.java:518)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
44)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:16
4)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
0)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
2)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.
java
:1011)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:110
6)
 at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.NullPointerException
 at
javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
 at javax.servlet.GenericServlet.log(GenericServlet.java:300)
 at javax.servlet.GenericServlet.destroy(GenericServlet.java:122)
 at
org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:10
11)
 at
org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1193
)
 at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:23
81)
 at

RE: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Mauro Daniel Ardolino

Very helpfull! Specially when you are developing. Thank you.

Mauro

On Fri, 13 Sep 2002, Miguel Angel Mulero Martinez wrote:

 Make a backup of tour server.xml file. Open your server.xml file. Inside the
 host.../host you will see some context Make another similar.
 To create a context for your webapp, put something like this:
 
 Context path=/ceeieuropa docBase=D:/Mulero/Mis
 documentos/forte/miproyecto reloadable=true /
 
 Whith this line, you map: http://localhost:8080/ceeiuropa to the directory
 specified.
 
 I think you have used the ROOT directory, so search the line:
 
 Context path= docBase=ROOT debug=0 /
 
 and change it for:
 
 Context path= docBase=ROOT debug=0 reloadable=true /
 
 If you don't want to create a context, simply put your application in the
 webapps directory and put in the host ... /host
 
 DefaultContext reloadable=true /
 
 With reloadable=true tomcat, every 15 seconds (by default) reloads the
 application if some class changed.
 
 Regards
 
 
 -Mensaje original-
 De: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes, 13 de septiembre de 2002 15:40
 Para: Tomcat Users List
 Asunto: RE: Does Tomcat require restart when chaning classes?
 
 Sorry for the next question, but...
 Do I have to put this line in the web.xml?
 How can I declare a context for my app?
 
 Thanks.
 
 Mauro
 
 
 On Fri, 13 Sep 2002, Miguel Angel Mulero Martinez wrote:
 
  In the context of the application, put the reloadable=true attribute. If
  you don't have a context for this application, you can put a:
 
DefaultContext reloadable=true /
 
  Bye...
 
  -Mensaje original-
  De: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
  Enviado el: viernes, 13 de septiembre de 2002 15:31
  Para: Tomcat Users List
  Asunto: Re: Does Tomcat require restart when chaning classes?
 
  I think you have to restart Tomcat for changes like this.
  Do someone know another way to do it?
 
  Mauro
 
  On Thu, 12 Sep 2002, Chuck Carson wrote:
 
  
   I had the following class:
   $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class
  
   If I modify this class (ie recompile) how can I make it active w/o
   restarting tomcat? As it stands now (with my current server config,
   which is pretty much default) I can only get news changes visible after
   a server restart.
  
   Thanks,
   CC
  
   Chuck Carson
   Sr. Systems Administrator
   Syrrx, Inc.
   10410 Science Center Drive
   San Diego, CA 92121
   E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   W: 858.731.3540
   M: 858.442.0827
  
  
   --
   This message contains confidential information and is intended only for
   the individual named. If you are not the named addressee you should not
   disseminate, distribute or copy this e-mail. Please notify the sender
   immediately by e-mail if you have received this e-mail by mistake and
   delete this e-mail from your system. E-mail transmission cannot be
   guaranteed to be secure or error-free as information could be
   intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
   contain viruses. The sender therefore does not accept liability for any
   errors or omissions in the contents of this message, which arise as a
   result of e-mail transmission. If verification is required please
   request a hard-copy version.
  
 
  --
  Ing.Mauro Daniel Ardolino
  Departamento de Desarrollo y Servicios
  Altersoft
  Billinghurst 1599 - Piso 9
  C1425DTE - Capital Federal
  Tel/Fax: 4821-3376 / 4822-8759
  mailto: [EMAIL PROTECTED]
  website: http://www.altersoft.com.ar
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


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




Re: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Ronald Klop

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Why not just enable the manager webapp and call:

http://localhost/manager/reload?path=/webapp

You don't need to enable 'reloadable' for this.

Greetings,

Ronald.

Mauro Daniel Ardolino wrote:
| I think you have to restart Tomcat for changes like this.
| Do someone know another way to do it?
|
| Mauro
|
| On Thu, 12 Sep 2002, Chuck Carson wrote:
|
|
|
|I had the following class:
|$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class
|
|If I modify this class (ie recompile) how can I make it active w/o
|restarting tomcat? As it stands now (with my current server config,
|which is pretty much default) I can only get news changes visible after
|a server restart.
|
|Thanks,
|CC
|
|Chuck Carson
|Sr. Systems Administrator
|Syrrx, Inc.
|10410 Science Center Drive
|San Diego, CA 92121
|E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
|W: 858.731.3540
|M: 858.442.0827
|
|
|--
|This message contains confidential information and is intended only for
|the individual named. If you are not the named addressee you should not
|disseminate, distribute or copy this e-mail. Please notify the sender
|immediately by e-mail if you have received this e-mail by mistake and
|delete this e-mail from your system. E-mail transmission cannot be
|guaranteed to be secure or error-free as information could be
|intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
|contain viruses. The sender therefore does not accept liability for any
|errors or omissions in the contents of this message, which arise as a
|result of e-mail transmission. If verification is required please
|request a hard-copy version.
|
|
|

- --
~ Ronald Klop
~ Amsterdam, The Netherlands
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9geKrPgc4rWsY77MRAkphAKCG3KY5LIolMx60+YxBLYE0W6Pq5QCfSItZ
ZcCERRM5P3tkv5E/juU0Qgc=
=Duha
-END PGP SIGNATURE-


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




RE: __USING COYOTE JK__

2002-09-13 Thread Turner, John


There's quite a bit more than that in the Tomcat docs:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html

Also, you can try my HOWTOs:

http://www.johnturner.com/howto

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 13, 2002 8:58 AM
 To: [EMAIL PROTECTED]
 Subject: __USING COYOTE JK__
 
 
 Does anyone know of a good tutorial telling how to link an 
 apache server 
 (1.3.26) and tomcat 4.1 on either/both linux/windows using coyote jk?
 I've searched the internet and the tomcat documentation, and 
 all I learned is 
 that coyote comes by default with tomcat 4.1.
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: Using A Directory Server for a Realm??

2002-09-13 Thread John Holman

Should be possible using JNDIRealm. See the realm how-to.
John.


Nicholas Orr wrote:

Hi,

Has anyone tried using a Novel or Active Directory for a Realm.  Would this
even be possible?

Nicholas Orr


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:  ++61 7 3833 8000
Support Centre e-mail: [EMAIL PROTECTED]
Support Centre phone:  Australia 1800500646
   International ++61 7 38338042
**


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

  



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




RE: Does Tomcat require restart when chaning classes?

2002-09-13 Thread Felipe Schnack

  This actually works for you? Never did for me. Maybe because the files
arent' JARed?
On Fri, 2002-09-13 at 09:37, Miguel Angel Mulero Martinez wrote:
 In the context of the application, put the reloadable=true attribute. If
 you don't have a context for this application, you can put a:
 
   DefaultContext reloadable=true /
 
 Bye...
 
 -Mensaje original-
 De: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
 Enviado el: viernes, 13 de septiembre de 2002 15:31
 Para: Tomcat Users List
 Asunto: Re: Does Tomcat require restart when chaning classes?
 
 I think you have to restart Tomcat for changes like this.
 Do someone know another way to do it?
 
 Mauro
 
 On Thu, 12 Sep 2002, Chuck Carson wrote:
 
 
  I had the following class:
  $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/MyClass.class
 
  If I modify this class (ie recompile) how can I make it active w/o
  restarting tomcat? As it stands now (with my current server config,
  which is pretty much default) I can only get news changes visible after
  a server restart.
 
  Thanks,
  CC
 
  Chuck Carson
  Sr. Systems Administrator
  Syrrx, Inc.
  10410 Science Center Drive
  San Diego, CA 92121
  E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  W: 858.731.3540
  M: 858.442.0827
 
 
  --
  This message contains confidential information and is intended only for
  the individual named. If you are not the named addressee you should not
  disseminate, distribute or copy this e-mail. Please notify the sender
  immediately by e-mail if you have received this e-mail by mistake and
  delete this e-mail from your system. E-mail transmission cannot be
  guaranteed to be secure or error-free as information could be
  intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
  contain viruses. The sender therefore does not accept liability for any
  errors or omissions in the contents of this message, which arise as a
  result of e-mail transmission. If verification is required please
  request a hard-copy version.
 
 
 --
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




No Context configured to process this request

2002-09-13 Thread William Wragg

Hi,

I am using tomcat 4.0.4 on sco openserver 5.0.5a with JDK1.3_02. I have 
installed the exact same setup and webapps on many machines (linux and 
windows as well as sco), and they have all worked fine. I have just 
installed on another machine and the client gets the following error 
message when they try to go to a page:

Apache Tomcat/4.0.4 - HTTP Status 500 - No Context configured to process 
this request

type Status report
message No Context configured to process this request
description The server encountered an internal error (No Context configured 
to process this request) that prevented it from fulfilling this request.

The error message also appears when they try to use the manager webapp. 
Looking at the localhost_log the contexts seem to have been created, or at 
least the log looks just the same as the log entries from a working site:

2002-09-13 13:16:19 WebappLoader[/manager]: Deploying class repositories to 
work
  directory /u1/pharaoh/jakarta-tomcat-4.0.4/work/Standalone/localhost/manager
2002-09-13 13:16:19 StandardManager[/manager]: Seeding random number 
generator c
lass java.security.SecureRandom
2002-09-13 13:16:19 StandardManager[/manager]: Seeding of random number 
generato
r has been completed
2002-09-13 13:16:20 ContextConfig[/manager]: Configured an authenticator 
for met
hod BASIC
2002-09-13 13:16:20 StandardWrapper[/manager:default]: Loading container 
servlet
  default
2002-09-13 13:16:20 default: init
2002-09-13 13:16:20 StandardWrapper[/manager:invoker]: Loading container 
servlet
  invoker
2002-09-13 13:16:20 invoker: init
2002-09-13 13:16:20 jsp: init
2002-09-13 13:16:21 WebappLoader[/jobreq]: Deploying class repositories to work
directory /u1/pharaoh/jakarta-tomcat-4.0.4/work/Standalone/localhost/jobreq
2002-09-13 13:16:21 WebappLoader[/jobreq]: Deploy JAR 
/WEB-INF/lib/application.j
ar to 
/u1/pharaoh/jakarta-tomcat-4.0.4/webapps/jobreq/WEB-INF/lib/application.ja
r
2002-09-13 13:16:21 WebappLoader[/jobreq]: Deploy JAR /WEB-INF/lib/datetime.jar
to /u1/pharaoh/jakarta-tomcat-4.0.4/webapps/jobreq/WEB-INF/lib/datetime.jar
2002-09-13 13:16:21 WebappLoader[/jobreq]: Deploy JAR 
/WEB-INF/lib/dbtags.jar to
  /u1/pharaoh/jakarta-tomcat-4.0.4/webapps/jobreq/WEB-INF/lib/dbtags.jar
2002-09-13 13:16:21 WebappLoader[/jobreq]: Deploy JAR 
/WEB-INF/lib/mailer.jar to
  /u1/pharaoh/jakarta-tomcat-4.0.4/webapps/jobreq/WEB-INF/lib/mailer.jar
2002-09-13 13:16:21 WebappLoader[/jobreq]: Deploy JAR 
/WEB-INF/lib/request.jar t
o /u1/pharaoh/jakarta-tomcat-4.0.4/webapps/jobreq/WEB-INF/lib/request.jar
2002-09-13 13:16:21 WebappLoader[/jobreq]: Deploy JAR 
/WEB-INF/lib/session.jar t
o /u1/pharaoh/jakarta-tomcat-4.0.4/webapps/jobreq/WEB-INF/lib/session.jar
2002-09-13 13:16:21 WebappLoader[/jobreq]: Reloading checks are enabled for 
this
  Context
2002-09-13 13:16:21 StandardManager[/jobreq]: Seeding random number 
generator cl
ass java.security.SecureRandom
2002-09-13 13:16:21 StandardManager[/jobreq]: Seeding of random number 
generator
  has been completed
2002-09-13 13:16:23 StandardWrapper[/jobreq:default]: Loading container servlet
default
2002-09-13 13:16:23 default: init
2002-09-13 13:16:23 StandardWrapper[/jobreq:invoker]: Loading container servlet
invoker
2002-09-13 13:16:23 invoker: init
2002-09-13 13:16:23 jsp: init
2002-09-13 13:16:32 jsp: init
2002-09-13 13:16:33 jsp: init
2002-09-13 13:16:35 jsp: init
2002-09-13 13:16:42 StandardHost[localhost]: MAPPING configuration error 
for req
uest URI

The MAPPING error is me trying to connect to http://SERVER:8080/jobreq

Does anyone know what is happening it's driving me nuts.

Regards,

Wm.




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 09/09/2002



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