tomcat4.1.24 not compiling jsp page

2003-12-24 Thread N.B.Bopanna
hi all,
when i put a new .js file in tomcat-4.1.24 and try to call it i get the 
following error.
can any body throw some light on this problem?
regds
Bopanna

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] An exception has occurred in the compiler (1.4.0_01). Please
file a bug at the Java Developer Connection
(http://java.sun.com/cgi-bin/bugreport.cgi)  after checking the Bug
Parade
for duplicates. Include your program and the following diagnostic in your
report.  Thank you.
[javac] java.lang.VerifyError: (class:
com/sun/tools/javac/v8/comp/Resolve, method: resolveSelf signature:
(ILcom/sun/tools/javac/v8/comp/Env;Lcom/sun/tools/javac/v8/code/Symbol$Ty
peS
ymbol;Lcom/sun/tools/javac/v8/util/Name;Z)Lcom/sun/tools/javac/v8/code/Sy
mbo
l;) Illegal local variable nC#
[javac] at
com.sun.tools.javac.v8.JavaCompiler.(JavaCompiler.java:97)
[javac] at
com.sun.tools.javac.v8.JavaCompiler.make(JavaCompiler.java:127)
[javac] at
com.sun.tools.javac.v8.JavaCompiler.make(JavaCompiler.java:141)
[javac] at com.sun.tools.javac.v8.Main.compile(Main.java:523)
[javac] at com.sun.tools.javac.Main.compile(Main.java:32)
[javac] at com.sun.tools.javac.Main.main(Main.java:23)



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHan
dle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.jav
a:2
93)
at org.apache.jasper.compiler.Compiler.generateClass
(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.jav
a:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
a:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
ion
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
rCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
vok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
0)
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.in
vok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
0)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415
)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
vok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal
ve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
vok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
vok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
0)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
ava
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
vok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
0)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594
)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCo
nne
ction(Http11Protocol.java:392)
at

Re: tomcat4.1.24 not compiling jsp page

2003-12-24 Thread Antony Paul
Possibly some class file is corrupted or  it may be due to a version
mismatch  between JDK and JVM or an older version of class files in class
path. What versions of JDK and and JVM is in your machine ?.

Antony Paul

- Original Message -
From: N.B.Bopanna [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 12:24 PM
Subject: tomcat4.1.24 not compiling jsp page


 hi all,
 when i put a new .js file in tomcat-4.1.24 and try to call it i get the
 following error.
 can any body throw some light on this problem?
 regds
 Bopanna

 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

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

 An error occurred at line: -1 in the jsp file: null

 Generated servlet error:
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler setting.
 [javac] An exception has occurred in the compiler (1.4.0_01). Please
 file a bug at the Java Developer Connection
 (http://java.sun.com/cgi-bin/bugreport.cgi)  after checking the Bug
 Parade
 for duplicates. Include your program and the following diagnostic in your
 report.  Thank you.
 [javac] java.lang.VerifyError: (class:
 com/sun/tools/javac/v8/comp/Resolve, method: resolveSelf signature:
 (ILcom/sun/tools/javac/v8/comp/Env;Lcom/sun/tools/javac/v8/code/Symbol$Ty
 peS
 ymbol;Lcom/sun/tools/javac/v8/util/Name;Z)Lcom/sun/tools/javac/v8/code/Sy
 mbo
 l;) Illegal local variable nC#
 [javac] at
 com.sun.tools.javac.v8.JavaCompiler.(JavaCompiler.java:97)
 [javac] at
 com.sun.tools.javac.v8.JavaCompiler.make(JavaCompiler.java:127)
 [javac] at
 com.sun.tools.javac.v8.JavaCompiler.make(JavaCompiler.java:141)
 [javac] at com.sun.tools.javac.v8.Main.compile(Main.java:523)
 [javac] at com.sun.tools.javac.Main.compile(Main.java:32)
 [javac] at com.sun.tools.javac.Main.main(Main.java:23)



 at
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHan
 dle
 r.java:130)
 at
 org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.jav
 a:2
 93)
 at org.apache.jasper.compiler.Compiler.generateClass
 (Compiler.java:353)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
 at
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.jav
 a:4
 73)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav
 a:1
 90)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service
 (JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
 ion
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
 rCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
 .ja
 va:256)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
 vok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
 0)
 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.in
 vok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
 0)
 at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415
 )
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
 180
 )
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
 vok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal
 ve.
 java:171)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
 vok
 eNext(StandardPipeline.java:641)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
 172
 )
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
 vok
 eNext(StandardPipeline.java:641)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
 0)
 at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
 ava
 :174)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.in
 vok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:48
 0)
 at org.apache.catalina.core.ContainerBase.invoke
 (ContainerBase.java:995)
 at
 

Re: setting opts to avoid OutOfMemory errors

2003-12-24 Thread Kagi (sm)
X-Kagi-AutoReply:r2db

Hello,

You sent an email that does not contain the formated purchase data that this email 
account is able to parse.

So that we may be able to assist you, we offer the following suggestions.

If you are writing to ask a question about a payment made to Kagi, you might be able 
to obtain answers to your questions through our online Payment Query System located at 
http://info.kagi.com 

If you have a question concerning a specific product you have purchased, we suggest 
that you directly contact the company that produced the product. They will be able to 
answer questions about the use of the product. Their email or web site should be noted 
in the product documentation or their online order page that can be found by searching 
for the product at http://order.kagi.com

If you wish to purchase a product, you can order online and pay with credit card, cash 
or check by searching for the product order page at http://order.kagi.com or if you 
have used a Register program, you can send the output of the Register program to 
[EMAIL PROTECTED] 

Finally, if you wish to direct your question to a human being at Kagi, please send 
your email to [EMAIL PROTECTED] and please just type your message into the email, do 
not send an attachment.

Thank you,
[EMAIL PROTECTED]

--



X-Kagi-AutoReply:r2db

Hello,

You sent an email that does not contain the formated purchase data that this email 
account is able to parse.

So that we may be able to assist you, we offer the following suggestions.

If you are writing to ask a question about a payment made to Kagi, you might be able 
to obtain answers to your questions through our online Payment Query System located 
at http://info.kagi.com 

If you have a question concerning a specific product you have purchased, we suggest 
that you directly contact the company that produced the product. They will be able to 
answer questions about the use of the product. Their email or web site should be 
noted in the product documentation or their online order page that can be found by 
searching for the product at http://order.kagi.com

If you wish to purchase a product, you can order online and pay with credit card, 
cash or check by searching for the product order page at http://order.kagi.com or 
if you have used a Register program, you can send the output of the Register 
program to [EMAIL PROTECTED] 

Finally, if you wish to direct your question to a human being at Kagi, please send 
your email to [EMAIL PROTECTED] and please just type your message into the email, do 
not send an attachment.

Thank you,
[EMAIL PROTECTED]

--



Hi,

Shapira, Yoav wrote:
Howdy,


The fact that in the stock distribution the fork attrribute is set to
false by default is IMHO not very good choice. Took me several days of
headaches trying to find the leak in my code. When there is a disign
choice slow versus crash for 1% of users I would choose slow and

put

into some doc how to make it faster if it is required.


Well, that's your opinion. ;)  I for one disagree.

In addition, this issue is well-documented in several places, including
the JSPs How-To
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html), the
Release Notes, the JSP servlet in $CATALINA_HOME/conf/web.xml, this
mailing list's archives, and links to this mailing list's archives from
the tomcat FAQ Memory page.  Workarounds such as precompilingare also
documented in at least one of the above places, including pre-compiling
your JSPs.

Sorry - I was trying to use tomcat 4.1.29 and never looked at 5.0 docs. In 4.1 ones 
there are really vague advices regarding memory ;-(
Also the 4.1.x was for quite a long period of time regarded as stable - not very 
stable with the default setting.



and following bash script:
while [ 1 ]
do
  /usr/bin/lynx -dump http://localhost:8080/test.jsp  /tmp/m.txt
  touch /usr/local/jakarta-tomcat-4.1.29/webapps/ROOT/test.jsp


If this (the JSP page source changing on every user request) is a
realistic scenario for your webapp, you will also run into other, deeper
performance- and data-integrity related issues.  But why do I get the
feeling the above script doesn't mimic any realistic production system
scenario? ;)

Come on! That was an isolation test case. Of course this is not a production system. 
On the production system we have approx 20-30 jsps with headers being updated (XMLs 
fetched and transformed) from another service once in an hour. But this system could 
stay up no longer than 2 days. If I new that the compilation is a problem I would do 
it otherwise - but I have suspected our code with the leak. Tried to use insane
(http://performance.netbeans.org/insane/) to find the leak and found the tomcat 
buffers ...

Best regards,

David


Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, 
and may contain 

RE: HowTo: Link Tomcat 5 with IIS 6 on Windows 2003 Server using the JK2 ajp13 connector

2003-12-24 Thread TJ
Hi Daniel, happy holidays to you... what are we fools doing 'working' !?

 You can get binary and source code at:
http://www.shiftomat.com/opensource/index.html

I've added an update to my guide making people aware of your
distribution.

 Since 1.4.2 and Tomcat 5.0.16 it is sufficient to download only the
JRE 

I too would be interested to know if this is the case. I thought the SDK
was required because the JSP/Servlets are being compiled on-the-fly and
therefore the additional SDK components are required.

 Registry
 There are additional registry entries for jk2
 #define USE_AUTH_COMP_TAG   (authComplete)
 #define THREAD_POOL_TAG (threadPool)
 #define SEND_GROUPS_TAG (sendGroups)

I discovered the 'new' registry key requirements by running RegMon on
the Server and watching what Apache keys inetinfo.exe reads when it
loads isapi_redirector2.dll

It does query authComplete and threadPool, but not sendGroups or
logLevel. I kind of 'guessed' at changing log_level to logLevel based on
the new format of the other keys. As it isn't read from the registry I'm
guessing it is not used any more.

I set authComplete to 0 and threadPool to 20. I have not found any 
documentation for sendGroups. It defaults to 0.

 Run WWW service in IIS 5.0 isolation mode

This is the big point. To run IIS 6.0 in native mode, all files used by
jk2 must be add to the Web extensions:
jk2.properties
workers2.properties
isapi_redirector2.dll
jk2.shm

I'm not sure this is the only requirement. I think the issue is more to
do with the compartment model the DLL uses, so that when used in a
'shared' environment a failure serving one web application doesn't bring
down all the rest.
 
I've had a response from a Microsoft IIS guy who says the DLL would need
to be rewritten to take advantage of IIS 6's new isolation scheme.

TJ.

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



jsp compilation error

2003-12-24 Thread dhayalan
Hi all,

 i Set up every thing for tomcat and postgresql and now i created a jsp file 
and accessing a bean in that by using useBean tag ,by opening the jsp file i am 
getting the following 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

/usr/local/jakarta-tomcat-5.0.16/work/Catalina/localhost/OnlineExam/org/apache/jsp/Jsp/welcome_jsp.java:6:
 '.' expected
import QuestionBean;
   ^
1 error



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


pls
Help to solve this problem 


Regards
Dhayalan.G

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



RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).

2003-12-24 Thread Christopher Watson
Charles

I've only been able to get jk2 iis-tomcat working with a
isapi_redirector2.dll version 2.0.1 which I can no longer find on
jakarta.apache.org
The latest seems to be 2.0.1 whichi I've never got to work.

If you like I can email it to you direct outside of this list.
I tried sending it direct to the list but it didn't turn up
I guess .dll attachements are blocked !?

Or does anyone know if the 2.0.1 version is still accessible at
jakarta.apache.org - URL please !
Or anyone know of problems/fixes for 2.0.1 ??

Christopher

 -Original Message-
 From: charles doweary [mailto:[EMAIL PROTECTED] 
 Sent: 23 December 2003 22:07
 To: [EMAIL PROTECTED]
 Subject: RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).
 
 
 Thanks, but that did not help.  I changed the direction of 
 the slashes in 
 the extension_uri and got the same results...no redirection.  
 Do you have 
 any other ideas?  Your support in this matter is greatly appreciated.
 
 
 From: Wendell Holmes [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).
 Date: Tue, 23 Dec 2003 11:37:36 -0700
 
 Try changing the extension_uri to forward slashes  - 
 /jakarta/isapi_redirect.dll
 
 Wendell Holmes
 
 Sorry for not quoting, but it bounced as too large for mailserver
 
 _
 Have fun customizing MSN Messenger - learn how here!  
 http://www.msnmessenger-download.com/tracking/reach_customize
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).

2003-12-24 Thread TJ
Hi Christopher,

You might like to check out my guide

How To Link Tomcat 5 with IIS 6 on Windows 2003 Server using the JK2
ajp13 connector

http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html

that I wrote yesterday to solve this problem for us.

In your case you might want to undo some of the additions you've made to
avoid complications from mixed installations.

TJ
2XP

To Explore, To Experience, To Express

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



Re: jsp compilation error

2003-12-24 Thread Antony Paul
Where is the java bean class file residing. It must be in WEB-INF\classes or
WEB-INF\lib(as jar file).
Antony Paul

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 2:31 PM
Subject: jsp compilation error


 Hi all,

  i Set up every thing for tomcat and postgresql and now i created
a jsp file and accessing a bean in that by using useBean tag ,by opening the
jsp file i am getting the following 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


/usr/local/jakarta-tomcat-5.0.16/work/Catalina/localhost/OnlineExam/org/apac
he/jsp/Jsp/welcome_jsp.java:6: '.' expected
 import QuestionBean;
^
 1 error



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:127)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
51)

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


 pls
 Help to solve this problem


 Regards
 Dhayalan.G

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



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



how to link tomcat 5 with apache

2003-12-24 Thread akki

happy holidays


plz guiude me

On Wed, 24 Dec 2003, TJ wrote:

 Hi Daniel, happy holidays to you... what are we fools doing 'working' !?
 
  You can get binary and source code at:
 http://www.shiftomat.com/opensource/index.html
 
 I've added an update to my guide making people aware of your
 distribution.
 
  Since 1.4.2 and Tomcat 5.0.16 it is sufficient to download only the
 JRE 
 
 I too would be interested to know if this is the case. I thought the SDK
 was required because the JSP/Servlets are being compiled on-the-fly and
 therefore the additional SDK components are required.
 
  Registry
  There are additional registry entries for jk2
  #define USE_AUTH_COMP_TAG   (authComplete)
  #define THREAD_POOL_TAG (threadPool)
  #define SEND_GROUPS_TAG (sendGroups)
 
 I discovered the 'new' registry key requirements by running RegMon on
 the Server and watching what Apache keys inetinfo.exe reads when it
 loads isapi_redirector2.dll
 
 It does query authComplete and threadPool, but not sendGroups or
 logLevel. I kind of 'guessed' at changing log_level to logLevel based on
 the new format of the other keys. As it isn't read from the registry I'm
 guessing it is not used any more.
 
 I set authComplete to 0 and threadPool to 20. I have not found any 
 documentation for sendGroups. It defaults to 0.
 
  Run WWW service in IIS 5.0 isolation mode
 
 This is the big point. To run IIS 6.0 in native mode, all files used by
 jk2 must be add to the Web extensions:
 jk2.properties
 workers2.properties
 isapi_redirector2.dll
 jk2.shm
 
 I'm not sure this is the only requirement. I think the issue is more to
 do with the compartment model the DLL uses, so that when used in a
 'shared' environment a failure serving one web application doesn't bring
 down all the rest.
  
 I've had a response from a Microsoft IIS guy who says the DLL would need
 to be rewritten to take advantage of IIS 6's new isolation scheme.
 
 TJ.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
contact me :
_
Akhilesh Kumar Maurya
Engineer
ITX,BHEL 
Hardwar 
_
E-Mail Id(s):-
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
__


DISCLAIMER:
This message contains privileged and confidential information and is 
intended only for the individual named.If you are not the intended 
recipient you should not disseminate,distribute,store,print, copy or 
deliver this message.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.



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



Rejecting connections: empty http header if maxProcessors reached

2003-12-24 Thread Bernd Bartke
Hi,

what is the desired behaviour if tomcat 4.1.29 rejects incoming requests 
because of maxProcessors reached?
Should tomcat return an empty http header?

To simulate the expected load on tomcat 4.1.29 I wrote a java client 
which starts conurrent threads accessing the web resource:

...
HttpURLConnection connection;
URL request;
InputStream input;
...
connection = (HttpURLConnection)request.openConnection();
input = connection.getInputStream();
...
When getting the input-stream out of the connection an IOException is 
thrown if maxProcessors is reached.
That seams ok for me, but how can a client determine if a real 
exception occured or the server rejected a connection?
I tried to look into the http-header of the connection:
...
Map headerFields;
...
connection = (HttpURLConnection)request.openConnection();
headerFields = connection.getHeaderFields();
...

But the header does not contain any fields ... an empty Map is returned.
Is it really the desired behavior of a server to return an empty header 
or shouldn't it better return at least an response code indication the 
rejected request?

I think a client should at least be able to call:
...
int responseCode = connection.getResponseCode();
...
to evaluate the response code - but if the header contains no fields, an 
IOException is thrown also.

Bye.


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Restart automatically Tomcat

2003-12-24 Thread Slimane Amar
Hi Shapira,

Now, i use Tomcat 5.0.16 and after it fails it does not restart
automatically.

Apparently, this version does not yet include this feature.
Is it scheduled for another version ?

Thanks.

-- Debut du message initial ---

De : Shapira, Yoav [EMAIL PROTECTED]
A  : Tomcat Users List [EMAIL PROTECTED]
Copies : 
Date   : Wed, 8 Oct 2003 08:57:59 -0400
Sujet  : RE: Restart automatically Tomcat


Howdy,
I would also add that the stable version of tomcat 5 is likely to
include this.  We have to modify common daemon first, but that's in the
works.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Slimane Amar [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 6:31 AM
To: tomcat-user
Subject: Restart automatically Tomcat

Hi all,

I'm using Tomcat 4.1.24 et i want after it fails it restarts
automatically
to have a high availability.

Is it possible with only Tomcat ?

Thanks

--
Slimane AMAR Mail: [EMAIL PROTECTED]
GENIGRAPHURL : http://www.genigraph.fr
104, rue Castagnary  Tel : +33 01 45 33 64 63
F-75015 PARIS FRANCE Fax : +33 01 45 33 89 63
--


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




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


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




--
Slimane AMAR Mail: [EMAIL PROTECTED]
GENIGRAPHURL : http://www.genigraph.fr
104, rue Castagnary  Tel : +33 01 45 33 64 63
F-75015 PARIS FRANCE Fax : +33 01 45 33 89 63
--


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



Re: JSP not reloading

2003-12-24 Thread Riaan Oberholzer
Why not move to the more traditional way and deploy
your application as a .war and not as an expanded
directory with classes and jsp's in it.

In your ant build script (assuming you are using ant),
you can build your .war which also includes
precompiling your JSP's with jasper.

Then use the tomcat ant tasks to just reload the
application. You'll be sure that the latest compiled
version of the jsp is running. Also, that delay when
you first access a jsp (waiting for it to be compiled
on the fly) will be gone.

If it is absolutely required than the application must
ALWAYS be available, then this is probably not an
option, but the reload takes a few seconds.



--- Mike Curwen [EMAIL PROTECTED] wrote:
 Hi everyone,
 
 This has been covered before, I know.  But there
 doesn't seem to be a
 common agreement on what the problem (and therefore
 solution) is. 
  
 Our Tomcat 4.1.24 instance has spontaneously decided
 to no longer
 recognize JSP changes! I say spontaneously, because
 we were running
 fine, in production, a number of different sites. 
 As it happens, a
 couple of these sites are getting 'tweaked'.. and so
 there are a large
 number of 'small changes' being made to the JSP
 pages. And as of
 Thursday last week, here's what we're observing...
  
 From the 'ok' state, we can get away with making one
 change to a JSP
 page.  Then we click refresh in the browser, and see
 the change we made.
 For every subsequent change to the JSP, the change
 is NOT reflected in
 the browser.  That page is now considered in the
 'not ok' state.  We go
 for lunch, or come back the next day.  If we make a
 change, it is
 recognized. (So the page was back in the 'ok'
 state)... but like before
 lunch, or yesterday, after that one change, it's
 back to the 'bad'
 state.  
 
 This applies to JSPs invoked from the address bar,
 AND through a JSP
 Include on the server-side. Even after 'touching'
 the parent JSP, the
 'included' one still appears as the 'old' version.
 
 The ugly hack:  If my JSP is called foo.jsp, I edit
 foo.jsp for my
 changes.  Then in a command line window I type cp
 foo.jsp fooX.jsp
 (where X is an ever increasing integer). And then I
 call fooX.jsp from
 the browser. 
 
 To ugly fix: We must stop Tomcat, clear the work
 directory's folder for
 that web app, and restart.  Then we're back to every
 page in the 'ok'
 state for just one change.
 
 There have been *zero* configuration changes to any
 of httpd.conf,
 workers.proprties and server.xml files in the
 timeframe of when it all
 went south.
 
 It's not the 4.1.27 reloading issue.
 We're on the internal network, there is no proxy
 caching.
 It's not browser caching. 
 It's not a server timestamp out of sync.
 
 Here's one thing of interest: One of the contexts
 that is under
 development has the reloadable=true in its Context
 entry. The other does
 not.  But that aside, BOTH of these web apps were
 reliably picking up
 changes, up until last week. (Does reloadable have
 anything to do with
 JSP's or just items under WEB-INF ?)
 
  
 Slackware 9
 Apache 2.0.45
 Tomcat 4.1.24
 JK (not sure of version)
 
 
 Has anyone run into this behaviour??  Is there a FAQ
 or google page
 covering this?
 
 I know this little bug has been around in some form
 or another for quite
 some time.
 Here's one entry:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg99927.html
 
 
 I'm thinking I'll have to try upgrading to 4.1.29.
 
 ---
 Mike Curwen204-885-7733
 Intermediate Programmer   www.gb-im.com
 ---
      ___   __  __ 
  / ___| | __ )  |_ _| |  \/  |
 | |  _  |  _ \   _   | |  | |\/| |
 | |_| | | |_) | |_|  | |  | |  | |
  \| |/  |___| |_|  |_|
 
 
 

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


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: Problem with database updates using DBCP

2003-12-24 Thread Riaan Oberholzer
Create 2 datasources and configure one to do auto
commit and one not. If you need the auto-commit
('single' insert, delete or updates calls), use that
datasource... if you want to do batch queries, use the
other and do the commit manually.




--- [EMAIL PROTECTED] wrote:Creat
 
 I was about to try that, but I had a thought...
 wouldn't that mean that
 batch transactions could not be used?  I say that
 because, as I understand
 it, you are supposed to explicitly turn off
 autocommit when committing a
 batch, which only makes sense I think.  If I specify
 at the data source
 level autocommit should be turned on, wouldn't that
 by definition mean I
 couldn't do batches?  If that is the case, then even
 if your suggestion
 works I couldn't use it because about half of my
 database writes are in
 fact batches (I should point out that right now they
 fail the same as a
 single insert, update or delete does).
 
 Frank W. Zammetti
 Web Architect Consultant
 PFPC Global Fund Services
 760 Moore Road
 King Of Prussia, PA 19406
 Mailstop: F4-F760-2B-3
 eMail: [EMAIL PROTECTED]
 Phone: (610)/382-8243
 FAX: (610)/382-8866
 Cell: (484)/302-1402
 
 
 
 |-+---
 | |   Philipp Taprogge|
 | |   Philipp.Taprogg|
 | |   [EMAIL PROTECTED]  |
 | |   |
 | |   12/23/2003 02:29|
 | |   PM  |
 | |   Please respond  |
 | |   to Tomcat Users|
 | |   List   |
 | |   |
 |-+---
  

--|
   | 
 
|
   |To:  Tomcat Users List
 [EMAIL PROTECTED]
   |
   |cc:  
 
|
   |Subject: Re: Problem with database
 updates using DBCP  
   |
  

--|
 
 
 
 Hi!
 
 David Ramsey wrote:
  I've not used DBCP specifically but are you sure
 you are committing
  your writes? Most pools will default rollback
 connections returned to
  the pool, if I am not mistaken.
 
 Isn't there a parameter autocommit in the
 ConnectionFactory? I am not
 sure if it's viable to call setAutoCommit() on a
 connection obtained
 from the pool.
 Try specifying autocommit in the DataSource
 declaration.
 
  Phil
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 
 
 
 -
 The contents of this email are the property of PNC.
 If it was not addressed to you, you have no legal
 right to read it. If you think you received it in
 error, please notify the sender. Do not forward or
 copy without permission of the sender.
 
 

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


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



threads in TC 4.1.29

2003-12-24 Thread Maksimenko Alexander
Hi!
I need organize in my web application sending emails in nonblocking way. 
So I'll create a message queue and thread that will pop messages from 
the queue and send them.
But I have doubt about it is safe to create my own threads in web 
application?
and if not how can I organize nonblocking processing without threads 
creating ?
--
Maksimenko Alexander
Softwarium, www.softwarium.net

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


Re: X.509 DN's in tomcat-users.xml / MalformedObjectNameException

2003-12-24 Thread Miguel A Paraz
On Tue, Dec 23, 2003 at 10:17:27PM -0800, Bill Barker wrote:
 Read again:  At the moment, only MemoryRealm supports CLIENT-CERT auth.
 What part of this don't you understand?

OK, my typo.  When I said:

  But UserRealm doesn't like it.  I tried URL-escaping the '=' to '%3D' but

I meant MemoryRealm, so I entered this into tomcat-users.xml:

user username=/C=PH/ST=NCR/L=Pasig/O=mparaz.com/OU=personal/CN=Miguel A Paraz/[EMAIL 
PROTECTED] 
  password=ignored 
  roles=role1/

Where the username attribute comes from the DN of the OpenSSL-generated 
certificate.

The heart of my question - and the original poster's - would be how to deal
with the javax.management.MalformedObjectNameException that comes from
having '=' characters in the username.




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



RE: NoClassDefFoundError: Digester

2003-12-24 Thread 29djeo

apparently I have several.  It looks like two came with redhat linux. one in 
/usr/share/java/commons-digester-1.5/ and 1 in usr/local/commons-digester-1.5


   ---Original Message---
From: Shapira, Yoav [EMAIL PROTECTED]
Subject: RE: NoClassDefFoundError: Digester
Sent: 22 Dec 2003 10:25:05
   
 Howdy,
 You need the commons-digester library to use the balancer webapp.
 There's a copy in $CATALINA_HOME/server/lib if you can't find one.
 However, your specific error is NOT a ClassNotFoundException.  It
 indicates a different version of the Digester library is on the runtime
 classpath.  Have you download a different Digester version, or maybe
 have one within your IDE?  It's tough to tell more without any context
 as to when/where you're getting the exception.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: 29djeo [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 20, 2003 8:07 PM
 To: [EMAIL PROTECTED]
 Subject: NoClassDefFoundError: Digester
 
 what does this mean?
 
 2003-12-20 14:43:11 StandardContext[/balancer]Exception starting filter
 BalancerFilter
 java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
 at
 org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:
 107)
 at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
 at
 org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationF
 ilte
 rConfig.java:272)
 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicati
 onFi
 lterConfig.java:355)
 at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilt
 erCo
 nfig.java:126)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.ja
 va:3
 646)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:426
 3)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
 ava:
 866)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
 at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
 yer.
 java:316)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
 at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
 a:72
 3)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
 93)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
 uppo
 rt.java:166)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:3
 9)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImp
 l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
 
 
 
 This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.
   ---Original Message---




Need tomcat-javagroups.jar

2003-12-24 Thread B Ramesh Kumar

Hi All,
 
I need source files http://www.filip.net/tomcat/tomcat-javagroups.jar 
and http://www.filip.net/tomcat/javagroups.jar,
but not avaliable in site. http://www.filip.net.
 
I am trying for in Memory Session Replication with Tomcat .
 
 
Can you sent to me?
 
Thanks in advance.
 
Regards
Ramesh Kumar B.
 

Confidentiality Notice 

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.


Problem....Hangs up

2003-12-24 Thread Chelisant Pavel
Good day!
Ive got Tomcat running as stand-alone web server + Java
Tomcat configured with SSL connector on port 443.
Its all ok.. and working properly..
But after three - four days of working it quits process user requests.. and hangs-up..

---
server.xml config file

!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443
   minProcessors=5 maxProcessors=1
   enableLookups=false compression=force
   connectionLinger=3 connectionTimeout=12
   acceptCount=2000 debug=0 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=false

   Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false keystorePass=tomcat 
keystoreFile=/home/tomcat/keystore/.keystore protocol=
TLS /
/Connector

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=1
   enableLookups=false redirectPort=8443
   acceptCount=2000 debug=0
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
--




Here the log files i got..


its Linux top ( take notice of memory usage and size )

 11:24:28  up 27 days, 23:05,  1 user,  load average: 0.82, 0.44, 0.17
1049 processes: 1048 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:   0.9% user  89.4% system   0.0% nice   0.0% iowait   9.5% idle
Mem:   516724k av,  511824k used,4900k free,   0k shrd,   31640k buff
   298968k active, 193000k inactive
Swap: 1044216k av,  487764k used,  556452k free9448k cached


  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
 10604 root  17   0  2392 2392   888 R90.2  0.4   5:22   0 top
 7757 root   9   0  558M 433M  352M S 0.0 85.8   3:30   0 java

here netstat -a


tcp0  0 update.registru.m:https 192.168.150.249:59726   TIMA_WAIT
. thousands of unclosed connections
tcp0  0 update.registru.m:https 192.168.150.249:59780   TIME_WAIT

Why this connections are still open? But in that period i havent got users used my 
server...

 
 ---here logs--
 
 
 
  11:28:19  up 27 days, 23:09,  1 user,  load average: 0.89, 0.69, 0.33
 File: localhos~-23.txt  Col 0  21726 bytes
0%
 2003-12-23 15:11:08 ApplicationDispatcher[] Servlet.service() for servlet jsp threw 
exception
 org.apache.jasper.JasperException: Connection has been shutdown: 
javax.net.ssl.SSLException: java.net.SocketExce
 ption: Broken pipe
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
 at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
 at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
 at org.apache.jsp.index_jsp._jspService(index_jsp.java:95)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.ja
 va: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.java:191)
 

RE: How to get the Context lists when the server is started

2003-12-24 Thread Shapira, Yoav

Howdy,
The ServletContextListener is notified when a context is started (and
shut down).  As the servlet specification intends for your application
to be self-contained and not know about other webapps on the server,
there's no API-standard way to get a list of contexts on the server.

You can do it using tomcat-specific code, but you probably don't want to
go that way.

You also have the ServletContext#getContext(String uripath) call, but
you need a uripath guess to use that.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: arunkumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 11:36 PM
To: [EMAIL PROTECTED]
Subject: How to get the Context lists when the server is started

Hi,
   I want to get the details of the Context [Web Applications]
initialized
when the Tomcat is started.I tried implementing the LifecycleListener
interface and it returns only Engine Startup Event.Is there is any
Listeners available when the Context is initialized or any other ways
to
find the available Contexts.
   Is it possible to register Valves for a particular context.I
tried
writing a class which extends ValveBase and gave an entry for the Valve
in the server.xml after the Context tag.But all the requests are coming
through this Valve.

Thanks,
Arun kumar


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




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


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



RE: NoClassDefFoundError: Digester

2003-12-24 Thread Shapira, Yoav

Howdy,

apparently I have several. It looks like two came with redhat linux.
one in /usr/share/java/commons-digester-1.5/ and 1 in
usr/local/commons-digester-1.5

But these aren't part of your tomcat installation.  What digester jars
do you have under $CATALINA_HOME?

Yoav Shapira


---Original Message---
 From: Shapira, Yoav [EMAIL PROTECTED]
 Subject: RE: NoClassDefFoundError: Digester
 Sent: 22 Dec 2003 10:25:05

 Howdy,
 You need the commons-digester library to use the balancer webapp.
 There's a copy in $CATALINA_HOME/server/lib if you can't find one.
 However, your specific error is NOT a ClassNotFoundException. It
 indicates a different version of the Digester library is on the
runtime
 classpath. Have you download a different Digester version, or maybe
 have one within your IDE? It's tough to tell more without any context
 as to when/where you're getting the exception.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: 29djeo [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 20, 2003 8:07 PM
 To: [EMAIL PROTECTED]
 Subject: NoClassDefFoundError: Digester
 
 what does this mean?
 
 2003-12-20 14:43:11 StandardContext[/balancer]Exception starting
filter
 BalancerFilter
 java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
 at

org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:
 107)
 at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
 at

org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
 at

org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationF
 ilte
 rConfig.java:272)
 at

org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicati
 onFi
 lterConfig.java:355)
 at

org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilt
 erCo
 nfig.java:126)
 at

org.apache.catalina.core.StandardContext.filterStart(StandardContext.ja
 va:3
 646)
 at

org.apache.catalina.core.StandardContext.start(StandardContext.java:426
 3)
 at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
 ava:
 866)
 at

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
 at

org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
 yer.
 java:316)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
 at

org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
 a:72
 3)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
 at

org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
 93)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
 uppo
 rt.java:166)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
 at

org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:3
 9)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImp
 l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



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




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


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



RE: Restart automatically Tomcat

2003-12-24 Thread Shapira, Yoav

Howdy,
Nope, it's not implemented yet and not on our radar screen at this
point, as we're all (I mean the core tomcat developers) very busy with
other stuff at the moment.  Feel free to implement it yourself and send
in a patch ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Slimane Amar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 5:50 AM
To: tomcat-user
Subject: RE: Restart automatically Tomcat

Hi Shapira,

Now, i use Tomcat 5.0.16 and after it fails it does not restart
automatically.

Apparently, this version does not yet include this feature.
Is it scheduled for another version ?

Thanks.

-- Debut du message initial ---

De : Shapira, Yoav [EMAIL PROTECTED]
A  : Tomcat Users List [EMAIL PROTECTED]
Copies :
Date   : Wed, 8 Oct 2003 08:57:59 -0400
Sujet  : RE: Restart automatically Tomcat


Howdy,
I would also add that the stable version of tomcat 5 is likely to
include this.  We have to modify common daemon first, but that's in the
works.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Slimane Amar [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 6:31 AM
To: tomcat-user
Subject: Restart automatically Tomcat

Hi all,

I'm using Tomcat 4.1.24 et i want after it fails it restarts
automatically
to have a high availability.

Is it possible with only Tomcat ?

Thanks

--
Slimane AMAR Mail: [EMAIL PROTECTED]
GENIGRAPHURL : http://www.genigraph.fr
104, rue Castagnary  Tel : +33 01 45 33 64 63
F-75015 PARIS FRANCE Fax : +33 01 45 33 89 63
--


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




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


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




--
Slimane AMAR Mail: [EMAIL PROTECTED]
GENIGRAPHURL : http://www.genigraph.fr
104, rue Castagnary  Tel : +33 01 45 33 64 63
F-75015 PARIS FRANCE Fax : +33 01 45 33 89 63
--


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




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


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



Re: Problem with database updates using DBCP

2003-12-24 Thread frank . zammetti

Well, some days you just miss the obvious I guess, this is one of those
days for me :)

Actually though, because of the way this app is architected, that won't
work without a fairly significant redesign, which can't be done at this
point.  We use a single database connection manager class (a fancy way of
saying a class that provides implementations of doSelect, doInsert, etc.)
that is re-used for the duration of a request.  Problem is, during some
requests we might be doing a mix of transactions that would require both
data soruces.  Since the connection is gotten from the data source once in
the beginning, there's no good way to know up-front which will be needed.
True enough, I could get one of each and use the appropriate one, but
getting two connections per request instead of one doesn't strike me as
particularly scalable.

Well, in any case, there's a small chance I can convince people to move to
Tomcat 5 and hopefully this problem goes away with DBCP being the default
factory now.  Thanks everyone!

Frank W. Zammetti
Web Architect Consultant
PFPC Global Fund Services
760 Moore Road
King Of Prussia, PA 19406
Mailstop: F4-F760-2B-3
eMail: [EMAIL PROTECTED]
Phone: (610)/382-8243
FAX: (610)/382-8866
Cell: (484)/302-1402



|-+---
| |   Riaan Oberholzer|
| |   riaanoberholzer|
| |   @yahoo.com |
| |   |
| |   12/24/2003 06:06|
| |   AM  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  |
  |
  |To:  Tomcat Users List [EMAIL PROTECTED]  
 |
  |cc: 
  |
  |Subject: Re: Problem with database updates using DBCP   
  |
  
--|



Create 2 datasources and configure one to do auto
commit and one not. If you need the auto-commit
('single' insert, delete or updates calls), use that
datasource... if you want to do batch queries, use the
other and do the commit manually.




--- [EMAIL PROTECTED] wrote:Creat

 I was about to try that, but I had a thought...
 wouldn't that mean that
 batch transactions could not be used?  I say that
 because, as I understand
 it, you are supposed to explicitly turn off
 autocommit when committing a
 batch, which only makes sense I think.  If I specify
 at the data source
 level autocommit should be turned on, wouldn't that
 by definition mean I
 couldn't do batches?  If that is the case, then even
 if your suggestion
 works I couldn't use it because about half of my
 database writes are in
 fact batches (I should point out that right now they
 fail the same as a
 single insert, update or delete does).

 Frank W. Zammetti
 Web Architect Consultant
 PFPC Global Fund Services
 760 Moore Road
 King Of Prussia, PA 19406
 Mailstop: F4-F760-2B-3
 eMail: [EMAIL PROTECTED]
 Phone: (610)/382-8243
 FAX: (610)/382-8866
 Cell: (484)/302-1402



 |-+---
 | |   Philipp Taprogge|
 | |   Philipp.Taprogg|
 | |   [EMAIL PROTECTED]  |
 | |   |
 | |   12/23/2003 02:29|
 | |   PM  |
 | |   Please respond  |
 | |   to Tomcat Users|
 | |   List   |
 | |   |
 |-+---



--|

   |

|
   |To:  Tomcat Users List
 [EMAIL PROTECTED]
   |
   |cc:

|
   |Subject: Re: Problem with database
 updates using DBCP
   |



--|




 Hi!

 David Ramsey wrote:
  I've not used DBCP specifically but are you sure
 you are committing
  your writes? Most pools will default rollback
 connections returned to
  the pool, if I am not mistaken.

 Isn't there a parameter autocommit in the
 ConnectionFactory? I am not
 sure if it's viable to call setAutoCommit() on a
 connection obtained
 from the 

RE: threads in TC 4.1.29

2003-12-24 Thread Shapira, Yoav

Howdy,
Don't worry about it, just make sure your threads terminate gracefully
on server shutdown.

As an aside, consider log4j's SMTPAppender (perhaps via an AsyncAppender
to make the mail sending operation non-blocking).  Questions on this
approach should be posted to the log4j-user list.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Maksimenko Alexander [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 1:38 AM
To: [EMAIL PROTECTED]
Subject: threads in TC 4.1.29

Hi!
I need organize in my web application sending emails in nonblocking
way.
So I'll create a message queue and thread that will pop messages from
the queue and send them.
But I have doubt about it is safe to create my own threads in web
application?
and if not how can I organize nonblocking processing without threads
creating ?
--
Maksimenko Alexander
Softwarium, www.softwarium.net


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




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


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



RE: Tomcat 4.1.18 MailSession Problem

2003-12-24 Thread Shapira, Yoav

Howdy,
Looks good.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Cord Awtry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 12:10 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1.18 MailSession Problem

Yoav,

Resource name=mail/MyMail auth=Container
type=javax.mail.Session /
ResourceParams name=mail/MyMail
  parameter
namemail.smtp.host/name
valuesmtp.rcn.com/value
  /parameter
  parameter
namemail.transport.protocol/name
valuesmtp/value
  /parameter
/ResourceParams

   Thanks,

   -C-

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 9:33 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.18 MailSession Problem


Howdy,
What's your Resource tag in server.xml for mail/MyMail look like?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Cord Awtry [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 21, 2003 9:24 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.18 MailSession Problem

Hello all,

I'm hoping someone can given me some help here. I'm
attempting to set up a mail session but I can't seem to get Tomcat to
use the specified host of the mail server, it keeps using only
localhost.

In my web.xml, I have:

  resource-ref
descriptionMy Mail Server/description
res-ref-namemail/MyMail/res-ref-name
res-typejavax.mail.Session/res-type
res-authContainer/res-auth
  /resource-ref

And in the server.xml, I have:

  ResourceParams name=mail/MyMail
parameter
  namemail.smtp.host/name
  valuesmtp.myserver.com/value
/parameter
  /ResourceParams

No matter what I do I get error from the mail server that
it
can't relay my message. When I debug this and look at the session, the
mail.smtp.host is set to localhost.

Any idea on what I've done wrong?

Thanks in advance for any help,

-C-



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



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




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


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



Re: Problem with database updates using DBCP

2003-12-24 Thread frank . zammetti
Just wanted to let everyone know that I convinced the powers that be here
at work to upgrade to 5.0.16 for this project, and lo and behold all my
problems went away!  Not a single line of code was changed, only two
configuration parameters changed (username became user and driverName
became url in the server.xml entry), and everything is now working as
expected.  Considerably snappier performance as well.  I wish I knew what
the issue was, but I'll live with never knowing now that things are working
right.  Thanks for all the suggestions tossed my way!

---

Hello all.  I've recently had a need to implement connection pooling under
Tomcat 4.0.6 (I can't upgrade versions as per a mandate by my employer).  I
have read some posts that indicate that Tyrex does not actually pool
connections.  I don't know for sure if that is true or not (any definitive
answers here?), so I decided to use DBCP, since I knew that did.

I grabbed the latest builds of DBCP, collections and pool (1.1, 2.1 and 1.1
respectively), stuck them in tomcat/common/lib, added my JNDI entry to the
app's context in server.xml, added the proper ref tags in web.xml and put
in the appropriate code to get a connection from the pool (set to
maxActive=50, maxIdle=5, maxWait=1000 and minIdle=10).

Now, I've got it up and running without much trouble.  Everything SEEMED to
be working fine, until I realized that all my database writes (updates,
inserts, deletes) were NOT hitting the database.

There are NO exceptions being thrown anywhere of any kind.  All the
relevant objects (statements, connection, etc.) are non-null.  Return codes
from SQL executions where applicable seem to be what they should be.
Database reads work perfectly, which indicates everything is OK I think (I
have a single class with a single method that gets the connection out of
the pool and deals with all database access).

My question is simple and obvious: anyone have any ideas why database
writes would be failing (maybe failing is the wrong word... simply not
happening is more accurate) while reads succeed?  It is an Oracle 9.2
database by the way, using the Oracle thin JDBC driver (same driver that is
used when I switch to manually creating connections in code rather than
using JNDI and Tomcat's facilities).

Frank W. Zammetti
Web Architect Consultant






-
The contents of this email are the property of PNC. If it was not addressed to you, 
you have no legal right to read it. If you think you received it in error, please 
notify the sender. Do not forward or copy without permission of the sender.


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



Re: How to: Tomcat 5.0.16 as Windows Service

2003-12-24 Thread Merrill Cornish
Bill,

Here's the Dr. Watson log for the failure of the install of Tomcat as a 
service.

Application exception occurred:
   App: E:\Program Files\Apache Group\Tomcat 5.0.16\bin\tomcat.exe 
(pid=2032)
   When: 12/24/2003 @ 10:01:13.045
   Exception number: c005 (access violation)

* System Information *
   Computer Name: MERRILL
   User Name: Merrill Cornish
   Terminal Session Id: 0
   Number of Processors: 1
   Processor Type: x86 Family 6 Model 8 Stepping 1
   Windows Version: 5.1
   Current Build: 2600
   Service Pack: 1
   Current Type: Uniprocessor Free
   Registered Organization:
   Registered Owner: Merrill Cornish
* Task List *
  0 System Process
  4 System
372 smss.exe
588 csrss.exe
612 winlogon.exe
656 services.exe
668 lsass.exe
872 svchost.exe
964 svchost.exe
1124 svchost.exe
1184 ccEvtMgr.exe
1328 spoolsv.exe
1424 mysqld-max-nt.exe
1496 navapsvc.exe
1596 Error 0xD022
1864 Explorer.EXE
1960 ccApp.exe
180 jusched.exe
184 Error 0xD022
220 Remind32.exe
1800 cmd.exe
508 HTMLKit.exe
3264 iexplore.exe
3724 cmd.exe
3568 drwtsn32.exe
3556 thunderbird.exe
2032 tomcat.exe
2336 drwtsn32.exe
* Module List *
(0040 - 0040d000: E:\Program Files\Apache 
Group\Tomcat 5.0.16\bin\tomcat.exe
(70a7 - 70ad5000: C:\WINDOWS\system32\SHLWAPI.dll
(77c0 - 77c07000: C:\WINDOWS\system32\VERSION.dll
(77c1 - 77c63000: C:\WINDOWS\system32\msvcrt.dll
(77c7 - 77cb: C:\WINDOWS\system32\GDI32.dll
(77d4 - 77dcc000: C:\WINDOWS\system32\USER32.dll
(77dd - 77e5d000: C:\WINDOWS\system32\ADVAPI32.dll
(77e6 - 77f46000: C:\WINDOWS\system32\kernel32.dll
(77f5 - 77ff7000: C:\WINDOWS\System32\ntdll.dll
(7800 - 78086000: C:\WINDOWS\system32\RPCRT4.dll

* State Dump for Thread Id 0xc4c *

eax= ebx=00832430 ecx= edx=00832024 esi=0007 
edi=
eip=00405971 esp=0012fce4 ebp=00833d74 iopl=0 nv up ei pl nz na 
pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs= 
efl=0202

*** WARNING: Unable to verify checksum for E:\Program Files\Apache 
Group\Tomcat 5.0.16\bin\tomcat.exe
*** ERROR: Module load completed but symbols could not be loaded for 
E:\Program Files\Apache Group\Tomcat 5.0.16\bin\tomcat.exe
function: tomcat
   00405953 40   inc eax
   00405954 0057ff   add [edi-0x1],dl
   00405957 152c714000   adc eax,0x40712c
   0040595c 83c40c   add esp,0xc
   0040595f 85c0 testeax,eax
   00405961 0f858900 jne tomcat+0x59f0 (004059f0)
   00405967 8b7d04   mov edi,[ebp+0x4]
   0040596a 83c504   add ebp,0x4
   0040596d 83c9ff   or  ecx,0x
   00405970 46   inc esi
FAULT -00405971 f2ae repne   scasb
es:=??
   00405973 8b54242c mov edx,[esp+0x2c]
   00405977 8974241c mov [esp+0x1c],esi
   0040597b f7d1 not ecx
   0040597d 2bf9 sub edi,ecx
   0040597f 8bc1 mov eax,ecx
   00405981 8bf7 mov esi,edi
   00405983 8bfa mov edi,edx
   00405985 c1e902   shr ecx,0x2
   00405988 f3a5 rep movsd
   0040598a 8bc8 mov ecx,eax

* Stack Back Trace *
WARNING: Stack unwind information not available. Following frames may be 
wrong.
ChildEBP RetAddr  Args to Child 
00833d74 505c3a45 72676f72 46206d61 73656c69 tomcat+0x5971
     0x505c3a45

* Raw Stack Dump *
0012fce4  30 24 83 00 29 fe 12 00 - e5 4d e7 77 00 00 00 00  
0$..)M.w
0012fcf4  00 00 00 00 10 00 00 00 - 83 54 40 00 06 00 00 00  
[EMAIL PROTECTED]
0012fd04  07 00 00 00 58 3d 83 00 - 20 fd 12 00 24 fd 12 00  
X=.. ...$...
0012fd14  92 c8 c3 77 38 3e 83 00 - e9 68 e7 77 00 00 00 00  
...w8...h.w
0012fd24  45 3a 5c 50 72 6f 67 72 - 61 6d 20 46 69 6c 65 73  
E:\Program Files
0012fd34  5c 41 70 61 63 68 65 20 - 47 72 6f 75 70 5c 54 6f  
\Apache Group\To
0012fd44  6d 63 61 74 20 35 2e 30 - 2e 31 36 5c 62 69 6e 5c  
mcat 5.0.16\bin\
0012fd54  74 6f 6d 63 61 74 2e 65 - 78 65 20 2f 2f 52 53 2f  
tomcat.exe //RS/
0012fd64  2f 54 6f 6d 63 61 74 35 - 00 00 00 00 00 00 00 00  
/Tomcat5
0012fd74  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  

0012fd84  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  

0012fd94  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  

0012fda4  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  

Apache + Tomcat + MOD_JK

2003-12-24 Thread Hari Om
Hello,

I am using Apache 2.0.47 and Tomcat 4.1.27 on SuSE 8.0 box on same machine.
I am trying to make use of MOD_JK.SO (jk connector)which I build it from 
source.
I have 2 different Users to the system httpd and jakarta with respective 
directories as /usr/local/httpd and /usr/local/jakarta

/usr/local/httpd has httpd:httpd as owner and group
/usr/local/jakarta has jakarta:jakarta as owner and group
I have following files:
FILENAME OWNERGROUP   DIRECTORY
-
workers.properties   jakarta   jakarta/usr/local/jakarta/conf/jk/
server.xml   jakarta   jakarta/usr/local/jakarta/conf/
mod_jk.so   httpd httpd  /usr/local/httpd/modules/
mod_jk.log  jakarta   jakarta/usr/local/jakarta/logs
I was wondering if the above files are placed under the correct directories 
and if there would be any issues as far as RIGHTS/PERMISSIONS are concerned.

EXAMPLE: MOD_JK.LOG is placed under jakarta directoryand so Apache would 
NOT be able to write (if it needs to)
same thing applies to MOD_JK.SO.

Any realted information on above is appreciated.

HARI OM

_
Have fun customizing MSN Messenger — learn how here!  
http://www.msnmessenger-download.com/tracking/reach_customize

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


Tomcat 5 - Tag Lib Error

2003-12-24 Thread Chakravarthy, Sundar
Hi,

 

I just installed Windows version of Tomcat 5.x and get the following
error while try to run tag library examples..

Others work fine.

 


HTTP Status 500 - 

  _  


type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp
 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:509)
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:80
5)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:696)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:60
5)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:677)
java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.VerifyError: (class: org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)
 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:509)
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:80
5)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:696)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:60
5)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:677)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Tomcat
logs.

 



RE: Tomcat 5 - Tag Lib Error

2003-12-24 Thread Shapira, Yoav

Howdy,
What pageContext calls are you making in your JSP page?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 - Tag Lib Error

Hi,



I just installed Windows version of Tomcat 5.x and get the following
error while try to run tag library examples..

Others work fine.




HTTP Status 500 -

  _


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
.java:677)
java.lang.Thread.run(Thread.java:536)

root cause

java.lang.VerifyError: (class: org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
.java:677)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Tomcat
logs.






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


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



Re: Apache + Tomcat + MOD_JK

2003-12-24 Thread Ben Ricker
On Wed, 2003-12-24 at 10:05, Hari Om wrote:
 Hello,
 
 I am using Apache 2.0.47 and Tomcat 4.1.27 on SuSE 8.0 box on same machine.
 I am trying to make use of MOD_JK.SO (jk connector)which I build it from 
 source.
 I have 2 different Users to the system httpd and jakarta with respective 
 directories as /usr/local/httpd and /usr/local/jakarta
 
 /usr/local/httpd has httpd:httpd as owner and group
 /usr/local/jakarta has jakarta:jakarta as owner and group
 
 I have following files:
 FILENAME OWNERGROUP   DIRECTORY
 -
 workers.properties   jakarta   jakarta/usr/local/jakarta/conf/jk/

This needs to be accessible by http. i have mine in the
$APACHE_HOME/conf directory.

 server.xml   jakarta   jakarta/usr/local/jakarta/conf/
 mod_jk.so   httpd httpd  /usr/local/httpd/modules/

This is Ok.

 mod_jk.log  jakarta   jakarta/usr/local/jakarta/logs

Needs to be in the $APACHE_HOME/logs directory, or a place that the
httpd user can write to.

Ben Ricker
Wellinx, inc.


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



RE: Tomcat 5 - Tag Lib Error

2003-12-24 Thread Chakravarthy, Sundar
I am running BasicArithmetic example found in the base distribution -
http://localhost:8080/jsp-examples/

Here is the source code. Actually , none of the tag library examples
work.

html
  head
titleJSP 2.0 Expression Language - Basic Arithmetic/title
  /head
  body
h1JSP 2.0 Expression Language - Basic Arithmetic/h1
hr
This example illustrates basic Expression Language arithmetic.
Addition (+), subtraction (-), multiplication (*), division (/ or
div), 
and modulus (% or mod) are all supported.  Error conditions, like
division by zero, are handled gracefully.
br
blockquote
  code
table border=1
  thead
tdbEL Expression/b/td
tdbResult/b/td
  /thead
  tr
td\${1}/td
td${1}/td
  /tr
  tr
td\${1 + 2}/td
td${1 + 2}/td
  /tr
  tr
td\${1.2 + 2.3}/td
td${1.2 + 2.3}/td
  /tr
  tr
td\${1.2E4 + 1.4}/td
td${1.2E4 + 1.4}/td
  /tr
  tr
td\${-4 - 2}/td
td${-4 - 2}/td
  /tr
  tr
td\${21 * 2}/td
td${21 * 2}/td
  /tr
  tr
td\${3/4}/td
td${3/4}/td
  /tr
  tr
td\${3 div 4}/td
td${3 div 4}/td
  /tr
  tr
td\${3/0}/td
td${3/0}/td
  /tr
  tr
td\${10%4}/td
td${10%4}/td
  /tr
  tr
td\${10 mod 4}/td
td${10 mod 4}/td
  /tr
tr
  td\${(1==2) ? 3 : 4}/td
  td${(1==2) ? 3 : 4}/td
/tr
/table
  /code
/blockquote
  /body
/html


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 24, 2003 11:18 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error


Howdy,
What pageContext calls are you making in your JSP page?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 - Tag Lib Error

Hi,



I just installed Windows version of Tomcat 5.x and get the following
error while try to run tag library examples..

Others work fine.




HTTP Status 500 -

  _


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
.java:677)
java.lang.Thread.run(Thread.java:536)

root cause

java.lang.VerifyError: (class: org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
.java:677)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Tomcat
logs.






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



RE: Tomcat 5 - Tag Lib Error

2003-12-24 Thread Shapira, Yoav

Howdy,
Do you have a version of the JSP API other than that provided with
tomcat?

(Needless to say, the JSP examples work out of the box for me and
everyone else I know who's using tomcat 5) ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:23 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error

I am running BasicArithmetic example found in the base distribution -
http://localhost:8080/jsp-examples/

Here is the source code. Actually , none of the tag library examples
work.

html
  head
titleJSP 2.0 Expression Language - Basic Arithmetic/title
  /head
  body
h1JSP 2.0 Expression Language - Basic Arithmetic/h1
hr
This example illustrates basic Expression Language arithmetic.
Addition (+), subtraction (-), multiplication (*), division (/ or
div),
and modulus (% or mod) are all supported.  Error conditions, like
division by zero, are handled gracefully.
br
blockquote
  code
table border=1
  thead
   tdbEL Expression/b/td
   tdbResult/b/td
 /thead
 tr
   td\${1}/td
   td${1}/td
 /tr
 tr
   td\${1 + 2}/td
   td${1 + 2}/td
 /tr
 tr
   td\${1.2 + 2.3}/td
   td${1.2 + 2.3}/td
 /tr
 tr
   td\${1.2E4 + 1.4}/td
   td${1.2E4 + 1.4}/td
 /tr
 tr
   td\${-4 - 2}/td
   td${-4 - 2}/td
 /tr
 tr
   td\${21 * 2}/td
   td${21 * 2}/td
 /tr
 tr
   td\${3/4}/td
   td${3/4}/td
 /tr
 tr
   td\${3 div 4}/td
   td${3 div 4}/td
 /tr
 tr
   td\${3/0}/td
   td${3/0}/td
 /tr
 tr
   td\${10%4}/td
   td${10%4}/td
 /tr
 tr
   td\${10 mod 4}/td
   td${10 mod 4}/td
 /tr
tr
  td\${(1==2) ? 3 : 4}/td
  td${(1==2) ? 3 : 4}/td
/tr
   /table
  /code
/blockquote
  /body
/html


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:18 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error


Howdy,
What pageContext calls are you making in your JSP page?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 - Tag Lib Error

Hi,



I just installed Windows version of Tomcat 5.x and get the following
error while try to run tag library examples..

Others work fine.




HTTP Status 500 -

  _


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
o
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
v
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211
)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
s
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
o
l
.java:677)
java.lang.Thread.run(Thread.java:536)

root cause

java.lang.VerifyError: (class:
org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
java.lang.Class.getDeclaredConstructors0(Native Method)

java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
o
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
v
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211
)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
s
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
o
l
.java:677)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Tomcat
logs.






This e-mail, including any attachments, is a confidential business

Classloader exception :jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4 .0.4

2003-12-24 Thread Sachdeva, Devinder
Hi All

I have classloader exception for 
 jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4.0.4 

Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal:
java.util.zip.ZipException: error in opening zip file
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1246)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:200)
at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader
Factory.java:202)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138)

Any clue 

Thanks in advance
Devinder


--
Notice:  This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (Whitehouse Station, New Jersey, USA), and/or
its affiliates (which may be known outside the United States as Merck Frosst,
Merck Sharp  Dohme or MSD) that may be confidential, proprietary copyrighted
and/or legally privileged, and is intended solely for the use of the
individual or entity named on this message.  If you are not the intended
recipient, and have received this message in error, please immediately return
this by e-mail and then delete it.
--

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



RE: Tomcat 5 - Tag Lib Error

2003-12-24 Thread Chakravarthy, Sundar
Hi,

Not really. I un-installed Tomcat 4.1 , re-started ,extracted the
contents of 5.x zip file and moved it under c:\Program Files .

How do I check for any other JSP API ? 

Thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 24, 2003 11:30 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error


Howdy,
Do you have a version of the JSP API other than that provided with
tomcat?

(Needless to say, the JSP examples work out of the box for me and
everyone else I know who's using tomcat 5) ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:23 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error

I am running BasicArithmetic example found in the base distribution -
http://localhost:8080/jsp-examples/

Here is the source code. Actually , none of the tag library examples
work.

html
  head
titleJSP 2.0 Expression Language - Basic Arithmetic/title
  /head
  body
h1JSP 2.0 Expression Language - Basic Arithmetic/h1
hr
This example illustrates basic Expression Language arithmetic.
Addition (+), subtraction (-), multiplication (*), division (/ or
div),
and modulus (% or mod) are all supported.  Error conditions, like
division by zero, are handled gracefully.
br
blockquote
  code
table border=1
  thead
   tdbEL Expression/b/td
   tdbResult/b/td
 /thead
 tr
   td\${1}/td
   td${1}/td
 /tr
 tr
   td\${1 + 2}/td
   td${1 + 2}/td
 /tr
 tr
   td\${1.2 + 2.3}/td
   td${1.2 + 2.3}/td
 /tr
 tr
   td\${1.2E4 + 1.4}/td
   td${1.2E4 + 1.4}/td
 /tr
 tr
   td\${-4 - 2}/td
   td${-4 - 2}/td
 /tr
 tr
   td\${21 * 2}/td
   td${21 * 2}/td
 /tr
 tr
   td\${3/4}/td
   td${3/4}/td
 /tr
 tr
   td\${3 div 4}/td
   td${3 div 4}/td
 /tr
 tr
   td\${3/0}/td
   td${3/0}/td
 /tr
 tr
   td\${10%4}/td
   td${10%4}/td
 /tr
 tr
   td\${10 mod 4}/td
   td${10 mod 4}/td
 /tr
tr
  td\${(1==2) ? 3 : 4}/td
  td${(1==2) ? 3 : 4}/td
/tr
   /table
  /code
/blockquote
  /body
/html


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:18 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error


Howdy,
What pageContext calls are you making in your JSP page?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 - Tag Lib Error

Hi,



I just installed Windows version of Tomcat 5.x and get the following
error while try to run tag library examples..

Others work fine.




HTTP Status 500 -

  _


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
o
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
v
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211
)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
s
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
o
l
.java:677)
java.lang.Thread.run(Thread.java:536)

root cause

java.lang.VerifyError: (class:
org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
java.lang.Class.getDeclaredConstructors0(Native Method)

java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
o
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
v
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211
)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
s
C
onnection(Http11Protocol.java:696)


Re: Classloader exception :jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4 .0.4

2003-12-24 Thread Mohammed Javed P
Hi Sachdeva,

Some code snippet would be helpful in getting an idea why this happens

Regards,
~Javed
Sachdeva, Devinder wrote:

Hi All

I have classloader exception for 
jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4.0.4 

Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal:
java.util.zip.ZipException: error in opening zip file
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1246)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:200)
at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader
Factory.java:202)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138)
Any clue 

Thanks in advance
Devinder
--
Notice:  This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (Whitehouse Station, New Jersey, USA), and/or
its affiliates (which may be known outside the United States as Merck Frosst,
Merck Sharp  Dohme or MSD) that may be confidential, proprietary copyrighted
and/or legally privileged, and is intended solely for the use of the
individual or entity named on this message.  If you are not the intended
recipient, and have received this message in error, please immediately return
this by e-mail and then delete it.
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--

Thank you and With Regards,
~Javed ([EMAIL PROTECTED] mailto:[EMAIL PROTECTED])








RE: Classloader exception :jdk1.4.1_01 on Apache 1.3.20 and Tomca t 4 .0.4

2003-12-24 Thread Sachdeva, Devinder
Javed -
May be this helpful for you?
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:117)
at java.util.jar.JarFile.init(JarFile.java:55)
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1216)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:200)
at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader
Factory.java:202)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138)
thanks
-Original Message-
From: Mohammed Javed P [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 24, 2003 11:44 AM
To: Tomcat Users List
Subject: Re: Classloader exception :jdk1.4.1_01 on Apache 1.3.20 and Tomcat
4 .0.4


Hi Sachdeva,

Some code snippet would be helpful in getting an idea why this happens

Regards,
~Javed


Sachdeva, Devinder wrote:

Hi All

I have classloader exception for 
 jdk1.4.1_01 on Apache 1.3.20 and Tomcat 4.0.4 

Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal:
java.util.zip.ZipException: error in opening zip file
   at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standa
r
dClassLoader.java:1246)
   at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.j
a
va:200)
   at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoade
r
Factory.java:202)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:138)

Any clue 

Thanks in advance
Devinder


---
---
Notice:  This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (Whitehouse Station, New Jersey, USA),
and/or
its affiliates (which may be known outside the United States as Merck
Frosst,
Merck Sharp  Dohme or MSD) that may be confidential, proprietary
copyrighted
and/or legally privileged, and is intended solely for the use of the
individual or entity named on this message.  If you are not the intended
recipient, and have received this message in error, please immediately
return
this by e-mail and then delete it.
---
---

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


  


-- 


Thank you and With Regards,
~Javed ([EMAIL PROTECTED] mailto:[EMAIL PROTECTED])
 

 


 



--
Notice:  This e-mail message, together with any attachments, contains
information of Merck  Co., Inc. (Whitehouse Station, New Jersey, USA), and/or
its affiliates (which may be known outside the United States as Merck Frosst,
Merck Sharp  Dohme or MSD) that may be confidential, proprietary copyrighted
and/or legally privileged, and is intended solely for the use of the
individual or entity named on this message.  If you are not the intended
recipient, and have received this message in error, please immediately return
this by e-mail and then delete it.
--

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



RE: Tomcat 5 - Tag Lib Error

2003-12-24 Thread Chakravarthy, Sundar
Actually, none of the JSP 2.0 examples work. I can only browse their
source code. Tried installing via Windows exe as well as zip.

Merry Xmas!

-Original Message-
From: Chakravarthy, Sundar 
Sent: Wednesday, December 24, 2003 11:42 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error

Hi,

Not really. I un-installed Tomcat 4.1 , re-started ,extracted the
contents of 5.x zip file and moved it under c:\Program Files .

How do I check for any other JSP API ? 

Thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 24, 2003 11:30 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error


Howdy,
Do you have a version of the JSP API other than that provided with
tomcat?

(Needless to say, the JSP examples work out of the box for me and
everyone else I know who's using tomcat 5) ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:23 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error

I am running BasicArithmetic example found in the base distribution -
http://localhost:8080/jsp-examples/

Here is the source code. Actually , none of the tag library examples
work.

html
  head
titleJSP 2.0 Expression Language - Basic Arithmetic/title
  /head
  body
h1JSP 2.0 Expression Language - Basic Arithmetic/h1
hr
This example illustrates basic Expression Language arithmetic.
Addition (+), subtraction (-), multiplication (*), division (/ or
div),
and modulus (% or mod) are all supported.  Error conditions, like
division by zero, are handled gracefully.
br
blockquote
  code
table border=1
  thead
   tdbEL Expression/b/td
   tdbResult/b/td
 /thead
 tr
   td\${1}/td
   td${1}/td
 /tr
 tr
   td\${1 + 2}/td
   td${1 + 2}/td
 /tr
 tr
   td\${1.2 + 2.3}/td
   td${1.2 + 2.3}/td
 /tr
 tr
   td\${1.2E4 + 1.4}/td
   td${1.2E4 + 1.4}/td
 /tr
 tr
   td\${-4 - 2}/td
   td${-4 - 2}/td
 /tr
 tr
   td\${21 * 2}/td
   td${21 * 2}/td
 /tr
 tr
   td\${3/4}/td
   td${3/4}/td
 /tr
 tr
   td\${3 div 4}/td
   td${3 div 4}/td
 /tr
 tr
   td\${3/0}/td
   td${3/0}/td
 /tr
 tr
   td\${10%4}/td
   td${10%4}/td
 /tr
 tr
   td\${10 mod 4}/td
   td${10 mod 4}/td
 /tr
tr
  td\${(1==2) ? 3 : 4}/td
  td${(1==2) ? 3 : 4}/td
/tr
   /table
  /code
/blockquote
  /body
/html


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:18 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 - Tag Lib Error


Howdy,
What pageContext calls are you making in your JSP page?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 5 - Tag Lib Error

Hi,



I just installed Windows version of Tomcat 5.x and get the following
error while try to run tag library examples..

Others work fine.




HTTP Status 500 -

  _


type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
o
r
Base.java:509)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
v
a
:164)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211
)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
8
0
5)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
s
C
onnection(Http11Protocol.java:696)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
6
0
5)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
o
l
.java:677)
java.lang.Thread.run(Thread.java:536)

root cause

java.lang.VerifyError: (class:
org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
java.lang.Class.getDeclaredConstructors0(Native Method)

java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
o
r
Base.java:509)


Hashtable Object Factory for JNDI

2003-12-24 Thread srinath narasimhan
Hi

I want to store a hashtable in Tomcat's JNDI context.
Is there a default object factory for hashtable ?
I want to manipulate the JNDI from the application. Tomcat's JNDI is read
only.
So I am trying to put a hashtable, which I can manipulate.
Is there a different way to do this.

Thanks
Srinath.


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



Re: mod_jk2/2.0.2 failure in Tomcat 5.0.16 / Apache 2.0.48

2003-12-24 Thread Jeremy Barth
I eventually solved this problem.  In addition to the first two entries,
you also need the 'shm' entry.

   # workers2.properties
   #
   [channel.socket:localhost:8009]
   tomcatId=localhost:8009

   [uri:/jsp-examples/*]

   [shm]
   file=/usr/local/apache/logs/shm.file
   size=1048576

Even if the Tomcat instance is running on a different server than
Apache, you still seem to require this shared memory entry.  The
documentation doesn't seem to indicate that [shm] is a *requirement*,
so I can only assume there's something different about my environment.


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



All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status

2003-12-24 Thread alan sparago
I am using Tomcat 5.0.16 standalone serving as both an http/https web server
and servlet container. This error occurred in our QA environment and has
caused Tomcat to hang and not service any requests. This error seemed to
occur when no users were using the site at the time, but about 4 DAYS
earlier we preformed a stress test simulating 1200 semi-simultaneous users
and everything worked perfectly without any errors. Since the stress test we
are only accessing the application as an occasional single user, the last
time being about 8 hours prior to this error happening. Most parameters in
the server.xml file are the default values (the maxThreads value is set to
150). 

Our log file is in xml format and contains the following error;

  loggerorg.apache.tomcat.util.threads.ThreadPool/logger

  levelSEVERE/level

  classorg.apache.tomcat.util.threads.ThreadPool/class

  methodlogFull/method

  thread13/thread

  messageAll threads (150) are currently busy, waiting. Increase
maxThreads (150) or check the servlet status/message

 

fyi. Nowhere in my application is the code creating any threads.

 

We are very close to our site being live so any help or information would be
greatly appreciated. Would tomcat 4.1.29 be more stable?

 



RE: Need tomcat-javagroups.jar

2003-12-24 Thread Filip Hanik
http://cvs.apache.org/~fhanik/

tomcat-replication.jar is the name of it now :)

Filip

-Original Message-
From: B Ramesh Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 4:41 AM
To: [EMAIL PROTECTED]
Subject: Need tomcat-javagroups.jar



Hi All,
 
I need source files http://www.filip.net/tomcat/tomcat-javagroups.jar 
and http://www.filip.net/tomcat/javagroups.jar,
but not avaliable in site. http://www.filip.net.
 
I am trying for in Memory Session Replication with Tomcat .
 
 
Can you sent to me?
 
Thanks in advance.
 
Regards
Ramesh Kumar B.
 

Confidentiality Notice 

The information contained in this electronic message and any 
attachments to this message are intended
for the exclusive use of the addressee(s) and may contain 
confidential or privileged information. If
you are not the intended recipient, please notify the sender at 
Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.


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



getting Server.XML properties in servlets?

2003-12-24 Thread David Erickson
Hi I am working on an app that relies on an address to a mail server.. and
the mail server's address is different inside our network due to proxy stuff
than it is from outside, and our app will be deployed in both places.  Is it
possible for me to set some kind of property inside my server.xml file then
from within my servlet be able to get that property?

thanks!
-David


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



RE: getting Server.XML properties in servlets?

2003-12-24 Thread Shapira, Yoav

Howdy,
You can use env-entry-ref for this (read the servlet specification on
this web.xml property and tomcat's JNDI How-To document for the
server.xml Environment element).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 2:58 PM
To: Tomcat-User List
Subject: getting Server.XML properties in servlets?

Hi I am working on an app that relies on an address to a mail server..
and
the mail server's address is different inside our network due to proxy
stuff
than it is from outside, and our app will be deployed in both places.
Is
it
possible for me to set some kind of property inside my server.xml file
then
from within my servlet be able to get that property?

thanks!
-David


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




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


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



Re: getting Server.XML properties in servlets?

2003-12-24 Thread David Erickson
Thanks!
-David
- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 1:05 PM
Subject: RE: getting Server.XML properties in servlets?



Howdy,
You can use env-entry-ref for this (read the servlet specification on
this web.xml property and tomcat's JNDI How-To document for the
server.xml Environment element).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 2:58 PM
To: Tomcat-User List
Subject: getting Server.XML properties in servlets?

Hi I am working on an app that relies on an address to a mail server..
and
the mail server's address is different inside our network due to proxy
stuff
than it is from outside, and our app will be deployed in both places.
Is
it
possible for me to set some kind of property inside my server.xml file
then
from within my servlet be able to get that property?

thanks!
-David


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




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


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



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



taglibs moving from 4.X to 5.X

2003-12-24 Thread daniel
I have a large group of tag libs that have been working fine on tomcat 4.X versions.
I needed to upgrade to tomcat 5.X versions do to new features.
Well to make this short my tag libs no longer work on 5.X versions. When i try to run 
them i get...

org.apache.jasper.JasperException: /myproductdisplay.jsp(16,0) Unknown attribute type 
(String) for attribute pageToInclude.

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:274)

org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:975)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:739)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)
org.apache.jasper.compiler.Node$Root.accept(Node.java:485)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Validator.validate(Validator.java:1515)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:247)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Is this a bug in tomcat ?
Could this just be the way i have my taglib set up(all of my tags were created in 
netbeans 3.5.1)?
Is there anyone who might be able to shead some light on the problem?

Thanks,
Daniel Schulken


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.554 / Virus Database: 346 - Release Date: 12/20/2003

Re: getting Server.XML properties in servlets?

2003-12-24 Thread David Erickson
Ok I'm having some problems getting this value from my app.. here's what I
have put into my server.xml:
 GlobalNamingResources
  Environment name=mailServer type=java.lang.String
value=192.168.0.23/
  Environment name=mailUser type=java.lang.String
value=[EMAIL PROTECTED]/
/GlobalNamingResources

according to the docs:
name: The name of the environment entry to be created, relative to the
java:comp/env context.

from my servlet I try getting that using:
InitialContext ctx = new InitialContext();

String mailServer = (String)ctx.lookup(java:comp/env/mailServer);

String mailUser = (String)ctx.lookup(java:comp/env/mailUser);

however this throws an exception:

javax.naming.NameNotFoundException: Name mailServer is not bound in this
Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:822)

Any Ideas?  I also tried setting it in server.xml to be mail/mailServer
then looking it up as java:comp/env/mail/mailServer but it through the
same exception saying Name mail is not bound in this Context.

Thanks in advance,
David

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 1:05 PM
Subject: RE: getting Server.XML properties in servlets?



Howdy,
You can use env-entry-ref for this (read the servlet specification on
this web.xml property and tomcat's JNDI How-To document for the
server.xml Environment element).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 2:58 PM
To: Tomcat-User List
Subject: getting Server.XML properties in servlets?

Hi I am working on an app that relies on an address to a mail server..
and
the mail server's address is different inside our network due to proxy
stuff
than it is from outside, and our app will be deployed in both places.
Is
it
possible for me to set some kind of property inside my server.xml file
then
from within my servlet be able to get that property?

thanks!
-David


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




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


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



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



MOD_JK2 and MOD_JK on SuSE

2003-12-24 Thread Hari Om
I am using Apache 2.0.47 and Tomcat 4.1.27 and JDK 1.4 on SuSE Linux 8.0. I 
would like to use Connector for integrating Apache  Tomcat. I have 
installed MOD_JK2 and want to get rid of it. How can I uninstall it? WHen I 
run my Tomcat it still refers to JK2 settings. I wanted to use JK instead. 
Can anyone please help me on this.

Few more questions:
1) Is it worth using MOD_JK2 v/s MOD_JK?
2) I already installed MOD_JK2 and it does NOT seems to WORK...so wanted to 
get rid of it. I wanted to see if MOD_JK works. How is this possible? 
Deleting the jk2.properties and worker2.properties  DOES NOT 
WORKcatalina.out file still shows TOMCAT is refereing to JK as shown 
below:
---
INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 24, 2003 11:33:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 24, 2003 11:33:56 AM org.apache.jk.server.JkMain start
---

Can anyone please Help Me.

Thanks and Merry XMAS!

HARI OM

_
Enjoy a special introductory offer for dial-up Internet access — limited 
time only! http://join.msn.com/?page=dept/dialup

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


Re: MOD_JK2 and MOD_JK on SuSE

2003-12-24 Thread Jerry Ford
Hari:

To remove mod_jk2, just delete mod_jk2.so from your apache/libexec 
directory and delete the references to it from your Apache config 
(httpd.conf).

As for tomcat continuing to listen, that's because you have a mod_jk2 
connector defined in tomcat's server.xml.

Just because tomcat is listening for it does not mean mod_jk2 is working.

Somebody else will have to address the questions about value---I don't 
use mod_jk2, I have mod_jk, but I also don't use apache 2.x, I have 
apache 1.3. I believe jk2 is designed for apache 2.

As for jk2 references in jk configs, yes, jk2 shows up in my 
catalina.out, too, and I've never installed mod_jk2. It appears to just 
be some sloppy reference in a log message. It doesn't mean anything 
significant. I mean, it all still works. :)

Jerry

Hari Om wrote:

I am using Apache 2.0.47 and Tomcat 4.1.27 and JDK 1.4 on SuSE Linux 
8.0. I would like to use Connector for integrating Apache  Tomcat. I 
have installed MOD_JK2 and want to get rid of it. How can I uninstall 
it? WHen I run my Tomcat it still refers to JK2 settings. I wanted to 
use JK instead. Can anyone please help me on this.

Few more questions:
1) Is it worth using MOD_JK2 v/s MOD_JK?
2) I already installed MOD_JK2 and it does NOT seems to WORK...so 
wanted to get rid of it. I wanted to see if MOD_JK works. How is this 
possible? Deleting the jk2.properties and worker2.properties  DOES 
NOT WORKcatalina.out file still shows TOMCAT is refereing to JK as 
shown below:
--- 

INFO: Starting Coyote HTTP/1.1 on port 8080
Dec 24, 2003 11:33:56 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Dec 24, 2003 11:33:56 AM org.apache.jk.server.JkMain start
--- 

Can anyone please Help Me.

Thanks and Merry XMAS!

HARI OM

_
Enjoy a special introductory offer for dial-up Internet access  
limited time only! http://join.msn.com/?page=dept/dialup

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


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


RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).

2003-12-24 Thread charles doweary
I finally got it to work!!!

After adding the .jsp extension with mime type application/octet-stream to 
IIS 6.0 under the web site properties, http headers tab, my jsp-exapmles 
were processed successfully by Tomcat 5.0.

This needs to be added to all of the HOW TO documentation that out there 
currently.

Thanks for all of your input.


From: Christopher Watson [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).
Date: Wed, 24 Dec 2003 09:18:47 -
Charles

I've only been able to get jk2 iis-tomcat working with a
isapi_redirector2.dll version 2.0.1 which I can no longer find on
jakarta.apache.org
The latest seems to be 2.0.1 whichi I've never got to work.
If you like I can email it to you direct outside of this list.
I tried sending it direct to the list but it didn't turn up
I guess .dll attachements are blocked !?
Or does anyone know if the 2.0.1 version is still accessible at
jakarta.apache.org - URL please !
Or anyone know of problems/fixes for 2.0.1 ??
Christopher

 -Original Message-
 From: charles doweary [mailto:[EMAIL PROTECTED]
 Sent: 23 December 2003 22:07
 To: [EMAIL PROTECTED]
 Subject: RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).


 Thanks, but that did not help.  I changed the direction of
 the slashes in
 the extension_uri and got the same results...no redirection.
 Do you have
 any other ideas?  Your support in this matter is greatly appreciated.


 From: Wendell Holmes [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Not Redirecting (IIS6.0 - JWSDP1.3 with Tomcat5.0).
 Date: Tue, 23 Dec 2003 11:37:36 -0700
 
 Try changing the extension_uri to forward slashes  -
 /jakarta/isapi_redirect.dll
 
 Wendell Holmes
 
 Sorry for not quoting, but it bounced as too large for mailserver

 _
 Have fun customizing MSN Messenger - learn how here!
 http://www.msnmessenger-download.com/tracking/reach_customize


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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Have fun customizing MSN Messenger — learn how here!  
http://www.msnmessenger-download.com/tracking/reach_customize

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


RE: unit testing when application level scoping used

2003-12-24 Thread James Black
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 22, 2003 10:03 AM
 To: Tomcat Users List
 Subject: RE: unit testing when application level scoping used
 
 Cactus works beautifully with regards to servlet context and general
 environment setup.

  Should I instantiate a bean with session scope that is expected to be
present?

  Also, how do I handle the fact that I need to log in before I can test the
parts I need to test?  

  This whole set up is very difficult to unit test, and that is bothersome,
as I am certain that this is a source of considerable errors in
applications.

  Thank you for your response.

 Work like you don't need the money, love like you've never been hurt, and
dance like no one is watching. 
--- Satchel Paige 



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